fix new type error

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-05-04 08:47:21 -04:00
1 parent 36544f22aa
commit 80f6ac475a
1 file changed
+2 -1
+2 -1
View File
@@ -69,7 +69,8 @@ export async function getOrInsertWithAsync<K, V>(map: Map<K, V>, 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)!;
}
/**