Skip to content

Commit

Permalink
chore: use else-if
Browse files Browse the repository at this point in the history
  • Loading branch information
grabbou committed Feb 13, 2019
1 parent 50aa974 commit 6bf3c2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/cli/src/cliEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ async function setupAndRun() {

if (!command) {
commander.help();
}

if (typeof command === 'string') {
} else if (typeof command === 'string') {
printUnknownCommand(commander.args);
}
}
Expand Down

0 comments on commit 6bf3c2a

Please sign in to comment.