Skip to content

Commit

Permalink
Refine test for ignoring coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Nov 9, 2024
1 parent d25e300 commit 15710e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -2373,9 +2373,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
helpOption(flags, description) {
// Support disabling built-in help option.
if (typeof flags === 'boolean') {
// true is not an expected value. Do something sensible but no unit-test.
// istanbul ignore if
if (flags) {
// true is not an expected value. Do something sensible but no unit-test.
// istanbul ignore next
this._helpOption = this._helpOption ?? undefined; // preserve existing option
} else {
this._helpOption = null; // disable
Expand Down

0 comments on commit 15710e9

Please sign in to comment.