Fix pre-commit script to properly handle multiple files and resolve ESLint warnings
This commit is contained in:
@@ -8,7 +8,7 @@ function getStoredValue<T>(key: string, defaultValue: T): T {
|
||||
const saved = localStorage.getItem(key);
|
||||
try {
|
||||
return saved ? JSON.parse(saved) : defaultValue;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user