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:
parent
36544f22aa
commit
80f6ac475a
@ -69,7 +69,8 @@ export async function getOrInsertWithAsync<K, V>(map: Map<K, V>, key: K, asyncBu
|
|||||||
map.set(key, await asyncBuilder());
|
map.set(key, await asyncBuilder());
|
||||||
}
|
}
|
||||||
|
|
||||||
return map.get(key);
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
|
return map.get(key)!;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user