We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cec2081 commit 393fb60Copy full SHA for 393fb60
packages/core/src/utils/lru.ts
@@ -28,7 +28,7 @@ export class LRUMap<K, V> {
28
if (this._cache.size >= this._maxSize) {
29
// keys() returns an iterator in insertion order so keys().next() gives us the oldest key
30
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
31
- const nextKey = this._cache.keys().next().value;
+ const nextKey = this._cache.keys().next().value!;
32
this._cache.delete(nextKey);
33
}
34
this._cache.set(key, value);
0 commit comments