Skip to content
Permalink
Browse files
refactor(index): remove unused conditional; all options are binary (#157
)
  • Loading branch information
Fdawgs committed Nov 30, 2021
1 parent aec11c3 commit d563d2308e90ef354764357acb1db992108b6a46
Showing with 0 additions and 3 deletions.
  1. +0 −3 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) {

Check warning on line 27 in src/index.js

GitHub Actions / Lint Code

src/index.js#L27

Generic Object Injection Sink

Check warning on line 27 in src/index.js

GitHub Actions / Lint Code

src/index.js#L27

Generic Object Injection Sink
args.push(acceptedOptions[key].arg);

Check warning on line 28 in src/index.js

GitHub Actions / Lint Code

src/index.js#L28

Generic Object Injection Sink
if (typeof options[key] !== "boolean") {
args.push(options[key]);
}
} else {
invalidArgs.push(
`Invalid value type provided for option '${key}', expected ${

0 comments on commit d563d23

Please sign in to comment.