thekevinscott / UpscalerJS

Either all code paths should have explicit returns, or none of them JS-0045
Anti-pattern
Minor
6 months agoa year old
Expected to return a value at the end of arrow function
12    }
13  }, [callback, JSON.stringify(eventNames)]);
14
15  useEffect(() => {16    const current = ref.current;
17    if (current) {
18      eventNames.forEach(eventName => {