From 9c1255cd56c988dfe123fdae978a11a98360579e Mon Sep 17 00:00:00 2001 From: wmxpy Date: Sun, 15 Sep 2024 10:32:57 -0500 Subject: [PATCH] fix error handing --- .eslintrc.cjs | 1 + src/binary-storage/binary-storage.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 813d0f0..b6ac3f5 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -15,6 +15,7 @@ module.exports = { "error", { "argsIgnorePattern": "^_", + "caughtErrorsIgnorePattern": "^_", }, ], "comma-dangle": [ diff --git a/src/binary-storage/binary-storage.ts b/src/binary-storage/binary-storage.ts index 9a61a3f..4cc989c 100644 --- a/src/binary-storage/binary-storage.ts +++ b/src/binary-storage/binary-storage.ts @@ -49,7 +49,7 @@ export class FileSystemBinaryStorage extends ImbricateBinaryStorageBase implemen try { Buffer.from(binary, "base64"); return true; - } catch (error) { + } catch (_error) { return false; } }