Skip to content

Commit

Permalink
remove ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed May 15, 2022
1 parent 56ead06 commit 921f93a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions infinite/index.ts
Expand Up @@ -220,10 +220,6 @@ export const infinite = (<Data, Error>(useSWRNext: SWRHook) =>
}
}

// We are using `arguments` here because there's no other way around to
// tell if an argument is missing or `undefined`. It will be compiled to
// `arguments` anyways.
// @ts-ignore
return arguments.length
? swr.mutate(data, shouldRevalidate)
: swr.mutate()
Expand Down

0 comments on commit 921f93a

Please sign in to comment.