1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix new type error

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-04-29 11:34:32 -04:00
parent 36544f22aa
commit 80f6ac475a

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)!;
}
/**