Skip to content

Commit

Permalink
refactor: remove unneeded check
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Nov 4, 2022
1 parent 3431af2 commit a3f68d0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/rules/utils/parseJestFnCall.ts
Expand Up @@ -608,12 +608,6 @@ export const scopeHasLocalReference = (
}
}

if (
currentScope.through.every(ref => ref.identifier.name !== referenceName)
) {
return true;
}

currentScope = currentScope.upper;
}

Expand Down

0 comments on commit a3f68d0

Please sign in to comment.