Skip to content

Commit 5400b66

Browse files
authoredJan 16, 2021
Reduce cyclomatic complexity (#175)
1 parent 569def4 commit 5400b66

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@ const meow = (helpText, options) => {
189189
if (argv._.length === 0 && options.argv.length === 1) {
190190
if (argv.version === true && options.autoVersion) {
191191
showVersion();
192-
}
193-
194-
if (argv.help === true && options.autoHelp) {
192+
} else if (argv.help === true && options.autoHelp) {
195193
showHelp(0);
196194
}
197195
}

0 commit comments

Comments
 (0)
Please sign in to comment.