Skip to content

Commit 7e28144

Browse files
M-IzadmehrLuke Kang
andauthored
Update packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
Co-Authored-By: Luke Kang <[email protected]>
1 parent 5587b8c commit 7e28144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eslint-plugin-react-hooks/src/RulesOfHooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default {
117117
function countPathsFromStart(segment, pathHistory) {
118118
const {cache} = countPathsFromStart;
119119
let paths = cache.get(segment.id);
120-
let pathList = new Set(pathHistory);
120+
const pathList = new Set(pathHistory);
121121

122122
// If `pathList` includes the current segment then we've found a cycle!
123123
// We need to fill `cyclic` with all segments inside cycle

0 commit comments

Comments
 (0)