refactor(storage-manager): remove unnecessary null param for JSON.parse

This commit is contained in:
Sarah Vaupel 2020-02-04 09:45:21 +01:00 committed by Gregor Kleen
parent 7a7bfc2f33
commit 4b0c59797d

View File

@ -191,7 +191,7 @@ export class StorageManager {
let state; let state;
try { try {
state = JSON.parse(window.localStorage.getItem(this.namespace) || null); state = JSON.parse(window.localStorage.getItem(this.namespace));
} catch { } catch {
state = null; state = null;
} }
@ -281,7 +281,7 @@ export class StorageManager {
let state; let state;
try { try {
state = JSON.parse(window.sessionStorage.getItem(this.namespace) || null); state = JSON.parse(window.sessionStorage.getItem(this.namespace));
} catch { } catch {
state = null; state = null;
} }