diff --git a/src/useLocalStorageState.ts b/src/useLocalStorageState.ts index bedadc7..ac5cf0c 100644 --- a/src/useLocalStorageState.ts +++ b/src/useLocalStorageState.ts @@ -224,7 +224,5 @@ function parseJSON(value: string): unknown { function goodTry(tryFn: () => T): T | undefined { try { return tryFn() - } catch { - return undefined - } + } catch {} }