mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
fix(cache,data-structures): add missing non-null assertion and override
keyword (#5981)
This commit is contained in:
parent
58dbbd6bd2
commit
ed33108492
2
cache/lru_cache.ts
vendored
2
cache/lru_cache.ts
vendored
@ -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!);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user