-
-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(linter):
no-magic-numbers
remove redudant checks in `is_array_…
…index` (#6033) - there can not be an `UnaryExpression` as a `parent_kind`, when the `ast_kind` is `NumericLiteral`, `InternConfig::from` prevents it from happending - `NumericLiteral` can not be negative or else they would be passed as `UnaryExpression`
- Loading branch information
Showing
1 changed file
with
5 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters