Skip to content

Commit 6bf3c2a

Browse files
committed
chore: use else-if
1 parent 50aa974 commit 6bf3c2a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/cli/src/cliEntry.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,7 @@ async function setupAndRun() {
185185

186186
if (!command) {
187187
commander.help();
188-
}
189-
190-
if (typeof command === 'string') {
188+
} else if (typeof command === 'string') {
191189
printUnknownCommand(commander.args);
192190
}
193191
}

0 commit comments

Comments
 (0)