From 4a0ae942c80047603be5a6fb9785f72ca2803728 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 28 Aug 2024 23:35:22 -0400 Subject: [PATCH] Fix lint --- src/cramFile/util.ts | 2 +- test/cram2sam.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cramFile/util.ts b/src/cramFile/util.ts index cd476054..86ea4f8b 100644 --- a/src/cramFile/util.ts +++ b/src/cramFile/util.ts @@ -167,7 +167,7 @@ export function tinyMemoize(_class: any, methodName: any) { const res = method.call(this) this[memoAttrName] = res Promise.resolve(res).catch(() => { - // eslint-disable-next-line @typescript-eslint/no-dynamic-delete + delete this[memoAttrName] }) } diff --git a/test/cram2sam.ts b/test/cram2sam.ts index 6c25073a..9fa14d8c 100644 --- a/test/cram2sam.ts +++ b/test/cram2sam.ts @@ -243,6 +243,6 @@ async function run() { }) } -run().catch(e => { +run().catch((e: unknown) => { console.error(e) })