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) })