Skip to content

Commit

Permalink
Remove unnecessary return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Hook committed Sep 29, 2020
1 parent 7f1301a commit edfbaba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viewport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function ViewportProvider({ throttle = 100, children }: Props) {
})
}, [])

const resizeStart = useCallback((): void => {
const resizeStart = useCallback(() => {
throttleHandler.current = lodashThrottle(updateWindowSize, throttle)

updateWindowSize()
Expand All @@ -51,7 +51,7 @@ export function ViewportProvider({ throttle = 100, children }: Props) {
}
}, [throttle, updateWindowSize])

const resizeStop = useCallback((): void => {
const resizeStop = useCallback(() => {
if (!throttleHandler.current) {
return
}
Expand Down

0 comments on commit edfbaba

Please sign in to comment.