Skip to content

Commit

Permalink
fix(cli,action): fix unawaited async call (#329)
Browse files Browse the repository at this point in the history
The unawaited async call causes the method to not throw, thus we always were returning a `0` exit status.

Fixes #259
  • Loading branch information
chingor13 committed Feb 22, 2022
1 parent 067a0ff commit 3ef644c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/workflow.ts
Expand Up @@ -82,10 +82,10 @@ export async function main() {
}
switch (yargs.argv._[0]) {
case CREATE_PR_COMMAND:
createCommand();
await createCommand();
break;
case REVIEW_PR_COMMAND:
reviewCommand();
await reviewCommand();
break;
default:
// yargs should have caught this.
Expand Down

0 comments on commit 3ef644c

Please sign in to comment.