From dc3b479ca90eda37d91dbe4e8c6961fbb27625c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rory=20O=E2=80=99Kane?= Date: Thu, 9 Mar 2017 17:46:29 -0500 Subject: [PATCH] =?UTF-8?q?Update=20code=20in=20comment=20=E2=80=93=20`.ne?= =?UTF-8?q?wer`=20=E2=86=92=20`[NEWER]`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To match the style of `[OLDER]` earlier in the same line, and the use of `[NEWER]` in the many lines above. --- lru.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lru.js b/lru.js index d2657ee..cbc0302 100644 --- a/lru.js +++ b/lru.js @@ -193,7 +193,7 @@ class LRUMap { entry[OLDER][NEWER] = undefined; // link the newer entry to head this.newest = entry[OLDER]; - } else {// if(entry[OLDER] === undefined && entry.newer === undefined) { + } else {// if(entry[OLDER] === undefined && entry[NEWER] === undefined) { this.oldest = this.newest = undefined; }