fix linting errors

This commit is contained in:
Alfred Melch 2019-12-14 14:10:50 +01:00
parent c3f5fdcd18
commit 0db5d43409
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ import { useRef, useEffect } from 'react'
// from: https://overreacted.io/making-setinterval-declarative-with-react-hooks/
export function useInterval(callback, delay) {
const savedCallback = useRef()
const x = 'asdf'
// Remember the latest callback.
useEffect(() => {
savedCallback.current = callback

View File

@ -25,6 +25,6 @@ export function getNextSmallerNumber(num, sortedArray) {
return null
}
function lastEntry(arr) {
export function lastEntry(arr) {
return arr[arr.length - 1]
}