Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
Caught by the newly enabled no-constant-binary-expression rule.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Nov 9, 2023
1 parent 566df02 commit e22d1e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rules/ie11-restricted-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ module.exports = {
// see https://eslint.org/docs/rules/no-restricted-globals#options
const name = restriction.name || restriction;
assert.strictEqual(typeof name, "string");
return true // for consistent formatting below
// Allow globally since not supported on Number
&& name !== "isFinite"
// Allow globally since not supported on Number
return name !== "isFinite"
// Allow globally since not supported on Number
&& name !== "isNaN";
}),
Expand Down

0 comments on commit e22d1e3

Please sign in to comment.