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
parent 93adcd9811
commit 5d0e376eb4

View File

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