Skip to content

Commit

Permalink
✨ remove redundant line, 2 bytes less in the bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Apr 9, 2024
1 parent af98c51 commit b2d9e0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/useLocalStorageState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,5 @@ function parseJSON(value: string): unknown {
function goodTry<T>(tryFn: () => T): T | undefined {
try {
return tryFn()
} catch {
return undefined
}
} catch {}
}

0 comments on commit b2d9e0c

Please sign in to comment.