Skip to content

Commit

Permalink
🐛 Dont continue when user aborted choice
Browse files Browse the repository at this point in the history
  • Loading branch information
segersniels committed Mar 8, 2021
1 parent dabda82 commit bb8826c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ export default class Config extends Command {
`Which config value would you like to ${this.type}?`,
this.type === 'enable' ? this.config.inactive : this.config.active,
);

if (!choice) {
return;
}

this.args.nonFlags = [choice];
}

Expand Down

0 comments on commit bb8826c

Please sign in to comment.