refactor: clear a few ESLint warnings (#5808)

* refactor: clear a few ESLint warnings

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Fix
This commit is contained in:
Joshua Chen 2021-10-28 12:47:40 +08:00 committed by GitHub
parent 68c970175a
commit 4b2152a964
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 35 additions and 26 deletions

View file

@ -26,8 +26,8 @@ function getBrowserStorage(
} else {
try {
return window[storageType];
} catch (e: any) {
logOnceBrowserStorageNotAvailableWarning(e);
} catch (e) {
logOnceBrowserStorageNotAvailableWarning(e as Error);
return null;
}
}