Skip to content

Commit

Permalink
Update packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Luke Kang <kidkkr@icloud.com>
  • Loading branch information
M-Izadmehr and Luke Kang authored Oct 3, 2019
1 parent 5587b8c commit 7e28144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
function countPathsFromStart(segment, pathHistory) {
const {cache} = countPathsFromStart;
let paths = cache.get(segment.id);
let pathList = new Set(pathHistory);
const pathList = new Set(pathHistory);

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

0 comments on commit 7e28144

Please sign in to comment.