diff --git a/packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js b/packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js index b35af7da5a0c7..72130f4b830a0 100644 --- a/packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js +++ b/packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js @@ -521,7 +521,6 @@ const tests = { // Valid because the ref is captured. code: ` function useMyThing(myRef) { - myRef = useRef(); useEffect(() => { const handleMove = () => {}; const node = myRef.current;