Skip to content

Commit 4e70d5c

Browse files
committed
coerce type
1 parent 7a909ec commit 4e70d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cdk/stacks/VpcResourcesStack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class VpcResourcesStack extends Stack {
4747
// Context
4848
/* context values passed as --context cli arguments are passed as strings so coerce them to expected types*/
4949
const logRetentionInDays: number = Number(this.node.tryGetContext("logRetentionInDays"))
50-
const forwardCsocLogs: boolean = this.node.tryGetContext("forwardCsocLogs")
50+
const forwardCsocLogs: boolean = Boolean(this.node.tryGetContext("forwardCsocLogs"))
5151

5252
// Imports
5353
const cloudwatchKmsKey = Key.fromKeyArn(

0 commit comments

Comments
 (0)