You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(linter/plugins): handle zero-token files in SourceCode#getLastToken() (#16184)
- The root cause of the "iffy" line of code in #16003 was an incorrectly
implemented test.
- The corrected test revealed that the code attempted to index the `0`
index of an empty array.
- This PR fixes both issues.
- Also took the opportunity to remove a variable declaration in the
binary search.
0 commit comments