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 {}; } }