diff --git a/lib/utils/lru.js b/lib/utils/lru.js index 58f56e06..be4ae297 100644 --- a/lib/utils/lru.js +++ b/lib/utils/lru.js @@ -122,8 +122,6 @@ class LRU { if (this.capacity === 0) return; - key = String(key); - let item = this.map.get(key); if (item) { @@ -158,8 +156,6 @@ class LRU { if (this.capacity === 0) return null; - key = String(key); - const item = this.map.get(key); if (!item) @@ -180,7 +176,7 @@ class LRU { has(key) { if (this.capacity === 0) return false; - return this.map.has(String(key)); + return this.map.has(key); } /** @@ -193,8 +189,6 @@ class LRU { if (this.capacity === 0) return false; - key = String(key); - const item = this.map.get(key); if (!item)