diff --git a/src/common/utils/collection-functions.ts b/src/common/utils/collection-functions.ts index 9badbad824..0702230464 100644 --- a/src/common/utils/collection-functions.ts +++ b/src/common/utils/collection-functions.ts @@ -69,7 +69,8 @@ export async function getOrInsertWithAsync(map: Map, key: K, asyncBu map.set(key, await asyncBuilder()); } - return map.get(key); + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + return map.get(key)!; } /**