Skip to content

Commit

Permalink
fix: check isPartition for boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
rene84 committed Nov 21, 2023
1 parent 266976e commit 065e1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/aws-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ export class BoundCloudFormationClient extends CloudFormationClient {
if (binding.viaRoleArn !== undefined && typeof binding.viaRoleArn !== 'string') {
throw new OrgFormationError(`Cannot create CloudFormationClient where viaRoleArn is not string ${binding.viaRoleArn}`);
}
if (binding.isPartition !== undefined && typeof binding.roleInTargetAccount !== 'boolean') {
if (binding.isPartition !== undefined && typeof binding.isPartition !== 'boolean') {
throw new OrgFormationError(`Cannot create CloudFormationClient where isPartition is not boolean ${binding.isPartition}`);
}
}
Expand Down

0 comments on commit 065e1f4

Please sign in to comment.