Skip to content

Commit 26a6e14

Browse files
committed
Remove dead code in moveToEnd()
1 parent 5eac383 commit 26a6e14

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/lru.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,7 @@ export class LRU {
280280

281281
item.prev = this.last;
282282
item.next = null;
283-
284-
if (this.last !== null) {
285-
this.last.next = item;
286-
}
287-
283+
this.last.next = item;
288284
this.last = item;
289285
}
290286

0 commit comments

Comments
 (0)