Skip to content

Commit 59deff9

Browse files
committed
chore(cli): check for undefined instead of falsey
The return value from `context` is 0 which is falsey. This was causing pipeline failures with the error ``` Error: Unknown command: context ```
1 parent 1ee57bd commit 59deff9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/aws-cdk/bin/cdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ async function initCommandLine() {
309309
break;
310310
}
311311

312-
if (!returnValue) {
312+
if (returnValue !== undefined) {
313313
returnValue = await main(cmd, argv);
314314
}
315315

0 commit comments

Comments
 (0)