From 1daed122909532f5ec5c4b470ddf7f791944cf73 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 25 Nov 2019 14:22:43 -0500 Subject: [PATCH] Comment empty blocks --- ext/bg/js/api.js | 4 +++- ext/bg/js/settings.js | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js index 12257e92..d5256acb 100644 --- a/ext/bg/js/api.js +++ b/ext/bg/js/api.js @@ -404,7 +404,9 @@ async function apiGetBrowser() { if (info.name === 'Fennec') { return 'firefox-mobile'; } - } catch (e) { } + } catch (e) { + // NOP + } return 'firefox'; } else { return 'chrome'; diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js index f5c086ef..48026794 100644 --- a/ext/bg/js/settings.js +++ b/ext/bg/js/settings.js @@ -737,7 +737,9 @@ function storageBytesToLabeledString(size) { async function storageEstimate() { try { return (storageEstimate.mostRecent = await navigator.storage.estimate()); - } catch (e) { } + } catch (e) { + // NOP + } return null; } storageEstimate.mostRecent = null; @@ -745,7 +747,9 @@ storageEstimate.mostRecent = null; async function isStoragePeristent() { try { return await navigator.storage.persisted(); - } catch (e) { } + } catch (e) { + // NOP + } return false; }