From 7050ef3cb750585f35ca307b55e6fc7e050dcd57 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sun, 21 Jun 2026 02:04:52 +0200 Subject: [PATCH] style: format static/player/storage.ts --- static/player/storage.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/static/player/storage.ts b/static/player/storage.ts index a1b3d95..15565b4 100644 --- a/static/player/storage.ts +++ b/static/player/storage.ts @@ -12,7 +12,9 @@ const getLocalStorage = (): StorageLike | null => { export const safeLocalStorage = { getItem(key: string): string | null { const storage = getLocalStorage(); - if (!storage) return null; + if (!storage) { + return null; + } try { return storage.getItem(key); } catch (error) { @@ -22,7 +24,9 @@ export const safeLocalStorage = { }, setItem(key: string, value: string): void { const storage = getLocalStorage(); - if (!storage) return; + if (!storage) { + return; + } try { storage.setItem(key, value); } catch (error) { @@ -31,7 +35,9 @@ export const safeLocalStorage = { }, removeItem(key: string): void { const storage = getLocalStorage(); - if (!storage) return; + if (!storage) { + return; + } try { storage.removeItem(key); } catch (error) {