aboutsummaryrefslogtreecommitdiff
path: root/src/stores
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/lastPruneTimes.ts12
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;
},