From c536aa1641fd12a7cc60c40ae5d7f4617731ddb1 Mon Sep 17 00:00:00 2001 From: Yash-Singh1 Date: Fri, 15 Jan 2021 19:55:18 -0800 Subject: [PATCH] Reduce cyclomatic complexity --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index 6c6bb25..f9a6423 100644 --- a/index.js +++ b/index.js @@ -189,9 +189,7 @@ const meow = (helpText, options) => { if (argv._.length === 0 && options.argv.length === 1) { if (argv.version === true && options.autoVersion) { showVersion(); - } - - if (argv.help === true && options.autoHelp) { + } else if (argv.help === true && options.autoHelp) { showHelp(0); } }