diff options
| author | Fuwn <[email protected]> | 2023-12-17 22:55:50 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-17 22:55:50 -0800 |
| commit | 094ce8c00701f971173c81c93868a35d5f214659 (patch) | |
| tree | 1e0386c4c6689406510bf9ffa99b580cc135ad5e /src | |
| parent | feat(wrapped): add border-radius (diff) | |
| download | due.moe-094ce8c00701f971173c81c93868a35d5f214659.tar.xz due.moe-094ce8c00701f971173c81c93868a35d5f214659.zip | |
style(stores): simplify
Diffstat (limited to 'src')
| -rw-r--r-- | src/stores/lastPruneTimes.ts | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/stores/lastPruneTimes.ts b/src/stores/lastPruneTimes.ts index aa2ab723..7f3a8b8d 100644 --- a/src/stores/lastPruneTimes.ts +++ b/src/stores/lastPruneTimes.ts @@ -34,15 +34,9 @@ const createStore = () => { const keys = Object.keys(defaultTimes); const lastPruneTimesKeys = Object.keys(state); - if (keys.length !== lastPruneTimesKeys.length) { - return defaultTimes; - } - - for (const key of keys) { - if (!lastPruneTimesKeys.includes(key)) { - return defaultTimes; - } - } + if (keys.length !== lastPruneTimesKeys.length) return defaultTimes; + + for (const key of keys) if (!lastPruneTimesKeys.includes(key)) return defaultTimes; return state; }, |