From 29702e37509ffbda396aa242b8b7a358d9936cf7 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 12 Dec 2018 14:48:24 +0100 Subject: [PATCH] Remove type cast in ol/structs/LRUCache --- src/ol/structs/LRUCache.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/structs/LRUCache.js b/src/ol/structs/LRUCache.js index b603969913..efed52b75f 100644 --- a/src/ol/structs/LRUCache.js +++ b/src/ol/structs/LRUCache.js @@ -261,12 +261,12 @@ class LRUCache extends EventTarget { set(key, value) { assert(!(key in this.entries_), 16); // Tried to set a value for a key that is used already - const entry = /** @type {Entry} */ ({ + const entry = { key_: key, newer: null, older: this.newest_, value_: value - }); + }; if (!this.newest_) { this.oldest_ = entry; } else {