fix(cache,data-structures): add missing non-null assertion and override keyword (#5981)

This commit is contained in:
Asher Gomez 2024-09-16 11:40:21 +10:00 committed by GitHub
parent 58dbbd6bd2
commit ed33108492
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

2
cache/lru_cache.ts vendored
View File

@ -71,7 +71,7 @@ export class LruCache<K, V> extends Map<K, V>
#pruneToMaxSize(): void {
if (this.size > this.maxSize) {
this.delete(this.keys().next().value);
this.delete(this.keys().next().value!);
}
}

View File

@ -219,5 +219,5 @@ export class BidirectionalMap<K, V> extends Map<K, V> {
* assertEquals(map.toString(), "[object BidirectionalMap]");
* ```
*/
readonly [Symbol.toStringTag] = "BidirectionalMap";
override readonly [Symbol.toStringTag] = "BidirectionalMap";
}