style: format static/player/storage.ts

This commit is contained in:
2026-06-21 02:04:52 +02:00
committed by Milas Holsting
parent 4d4ee7bd58
commit 7050ef3cb7

View File

@@ -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) {