From d563d2308e90ef354764357acb1db992108b6a46 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 30 Nov 2021 11:51:59 +0000 Subject: [PATCH] refactor(index): remove unused conditional; all options are binary (#157) --- src/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/index.js b/src/index.js index 5643e1b..70563ac 100644 --- a/src/index.js +++ b/src/index.js @@ -26,9 +26,6 @@ function parseOptions(acceptedOptions, options, version) { // eslint-disable-next-line valid-typeof if (typeof options[key] === acceptedOptions[key].type) { args.push(acceptedOptions[key].arg); - if (typeof options[key] !== "boolean") { - args.push(options[key]); - } } else { invalidArgs.push( `Invalid value type provided for option '${key}', expected ${