Switch unnecessary let to const

This commit is contained in:
David Granado 2022-03-02 20:25:44 -06:00 committed by infinite-persistence
parent abb92726ab
commit 0f2eba8733

View file

@ -12,7 +12,7 @@ export default function useInterval(callback, delay) {
savedCallback.current(); savedCallback.current();
}; };
if (delay !== null) { if (delay !== null) {
let id = setInterval(tick, delay); const id = setInterval(tick, delay);
return () => clearInterval(id); return () => clearInterval(id);
} }
}, [delay]); }, [delay]);