Fix remaining catch blocks

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 17:08:24 +00:00
parent e9ae019285
commit 81fccdc4d0
10 changed files with 112 additions and 56 deletions

View File

@@ -64,7 +64,7 @@ class AuthStorage {
// Clean URL
window.history.replaceState({}, document.title, window.location.pathname);
}
} catch (error) {
} catch (error: unknown) {
authError('[AuthStorage] Failed to recover session from URL:', error);
}
}
@@ -115,7 +115,7 @@ class AuthStorage {
}
authLog('[AuthStorage] Using memory storage');
return this.memoryStorage.get(key) || null;
} catch (error) {
} catch (error: unknown) {
authError('[AuthStorage] Error reading from storage:', error);
return this.memoryStorage.get(key) || null;
}
@@ -129,7 +129,7 @@ class AuthStorage {
}
// Always keep in memory as backup
this.memoryStorage.set(key, value);
} catch (error) {
} catch (error: unknown) {
authError('[AuthStorage] Error writing to storage:', error);
// Fallback to memory only
this.memoryStorage.set(key, value);
@@ -142,7 +142,7 @@ class AuthStorage {
this.storage.removeItem(key);
}
this.memoryStorage.delete(key);
} catch (error) {
} catch (error: unknown) {
authError('[AuthStorage] Error removing from storage:', error);
this.memoryStorage.delete(key);
}
@@ -183,7 +183,7 @@ class AuthStorage {
// Clear memory storage
this.memoryStorage.clear();
authLog('[AuthStorage] ✓ All auth storage cleared');
} catch (error) {
} catch (error: unknown) {
authError('[AuthStorage] Error clearing storage:', error);
// Still clear memory storage as fallback
this.memoryStorage.clear();