From e5a7c44ac179944142d94ca77dfc4e8c5363ac15 Mon Sep 17 00:00:00 2001 From: Matt Isenhower Date: Tue, 18 Aug 2026 23:31:17 -0700 Subject: [PATCH] Fix unused catch bindings --- app/common/ValueCache.mjs | 2 +- utility/copyTranslation.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/ValueCache.mjs b/app/common/ValueCache.mjs index 2f3c61c..2f35f0b 100644 --- a/app/common/ValueCache.mjs +++ b/app/common/ValueCache.mjs @@ -16,7 +16,7 @@ export default class ValueCache let data = await fs.readFile(this.path); return JSON.parse(data); - } catch (e) { + } catch { return null; } } diff --git a/utility/copyTranslation.mjs b/utility/copyTranslation.mjs index 864badb..a5088a6 100644 --- a/utility/copyTranslation.mjs +++ b/utility/copyTranslation.mjs @@ -28,7 +28,7 @@ const locales = { async function readFile(file) { try { return JSON.parse(await fs.readFile(file)); - } catch (e) { + } catch { return {}; } }