From 93b0df55591d39977ddbbe1bebf451ca75efe8eb Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Thu, 2 May 2024 07:37:02 +0200 Subject: [PATCH] refactor: #158 remove no-useless-catch eslint rule (#178) * refactor: #158 configure no-unreachable eslint rule * refactor: #158 remove no-useless-catch eslint rule --- eslint.config.mjs | 2 -- test/raygun_express_test.js | 4 ---- 2 files changed, 6 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 2def443..2043070 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -29,8 +29,6 @@ export default tseslint.config( ], // Required to import JS modules "@typescript-eslint/no-var-requires": "off", - // TODO: Remove ignored rules and fix the code - "no-useless-catch": "off", } } ); \ No newline at end of file diff --git a/test/raygun_express_test.js b/test/raygun_express_test.js index 147382b..38a9e3a 100644 --- a/test/raygun_express_test.js +++ b/test/raygun_express_test.js @@ -42,8 +42,6 @@ test("batch reporting errors", async function (t) { try { await nextBatchRequest({ maxWait: 2000 }); - } catch (e) { - throw e; } finally { stop(); } @@ -68,8 +66,6 @@ test("batch transport discards massive errors", async function (t) { try { await nextBatchRequest({ maxWait: 2000 }); - } catch (e) { - throw e; } finally { stop(); }