Commit 6466ba9
fix(lru): use map.delete() directly (#713)
The default implementation already returns boolean if the value has been
deleted.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete#return_value
It's also faster since we don't double check the hashmap for a value.
---------
Co-authored-by: Luke Karrys <[email protected]>1 parent d777418 commit 6466ba9
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 20 | + | |
26 | 21 | | |
27 | 22 | | |
28 | 23 | | |
| |||
0 commit comments