diff options
| author | Fuwn <[email protected]> | 2023-12-14 12:48:18 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-14 12:48:18 -0800 |
| commit | 44fbf3a6077017168440ca90b187a835b5bbbbe6 (patch) | |
| tree | 80a4dbedd849b981aa4d7101ad6a3641102ce561 /src/stores/lastPruneTimes.ts | |
| parent | style(Anime): simplify statements (diff) | |
| download | due.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.ts | 4 |
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; |