Skip to content

Commit

Permalink
fix: remove unneeded condition (apparently?)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Apr 30, 2022
1 parent 5c96b5a commit e76e724
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rules/utils.ts
Expand Up @@ -904,9 +904,7 @@ const collectReferences = (scope: TSESLint.Scope.Scope) => {
continue;
}

if (def.type !== 'ImplicitGlobalVariable') {
locals.add(ref.name);
}
locals.add(ref.name);
}

for (const ref of currentScope.through) {
Expand Down

0 comments on commit e76e724

Please sign in to comment.