summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorCashew <52880648+Scrub1492@users.noreply.github.com>2023-12-29 12:05:11 +0700
committerGitHub <noreply@github.com>2023-12-29 05:05:11 +0000
commit59961b6eeb46a93aa2db587a047e6da79b2dceda (patch)
tree5af665c98909edba4cf5a436679f225f4200f3de /ext
parent088625266852bf1f86e3f6bc788f85356dafcd5d (diff)
remove redundancy in cache-map (#485)
* remove redundancy * fix lint
Diffstat (limited to 'ext')
-rw-r--r--ext/js/general/cache-map.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/js/general/cache-map.js b/ext/js/general/cache-map.js
index a995b8c7..8650d8e6 100644
--- a/ext/js/general/cache-map.js
+++ b/ext/js/general/cache-map.js
@@ -29,7 +29,6 @@ export class CacheMap {
*/
constructor(maxSize) {
if (!(
- typeof maxSize === 'number' &&
Number.isFinite(maxSize) &&
maxSize >= 0 &&
Math.floor(maxSize) === maxSize