aboutsummaryrefslogtreecommitdiff
path: root/src/stores/lastPruneTimes.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-12-14 12:48:18 -0800
committerFuwn <[email protected]>2023-12-14 12:48:18 -0800
commit44fbf3a6077017168440ca90b187a835b5bbbbe6 (patch)
tree80a4dbedd849b981aa4d7101ad6a3641102ce561 /src/stores/lastPruneTimes.ts
parentstyle(Anime): simplify statements (diff)
downloaddue.moe-44fbf3a6077017168440ca90b187a835b5bbbbe6.tar.xz
due.moe-44fbf3a6077017168440ca90b187a835b5bbbbe6.zip
style(stores): simplify statements
Diffstat (limited to 'src/stores/lastPruneTimes.ts')
-rw-r--r--src/stores/lastPruneTimes.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stores/lastPruneTimes.ts b/src/stores/lastPruneTimes.ts
index ef71053b..aa2ab723 100644
--- a/src/stores/lastPruneTimes.ts
+++ b/src/stores/lastPruneTimes.ts
@@ -54,9 +54,7 @@ const createStore = () => {
const lastPruneTimes = createStore();
lastPruneTimes.subscribe((value) => {
- if (browser) {
- localStorage.setItem('lastPruneTimes', JSON.stringify(value));
- }
+ if (browser) localStorage.setItem('lastPruneTimes', JSON.stringify(value));
});
export default lastPruneTimes;