From 44fbf3a6077017168440ca90b187a835b5bbbbe6 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 14 Dec 2023 12:48:18 -0800 Subject: style(stores): simplify statements --- src/stores/lastPruneTimes.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/stores/lastPruneTimes.ts') 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; -- cgit v1.2.3