Skip to content

Commit

Permalink
Missed changing calls to this.remove()
Browse files Browse the repository at this point in the history
Adding missed file in commit
  • Loading branch information
avoidwork committed Jan 13, 2019
1 parent 785f03b commit 37ad9b8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/tiny-lru.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

evict () {
if (this.length > 0) {
this.remove(this.last, true);
this.delete(this.last, true);
}

return this;
Expand All @@ -73,7 +73,7 @@
result = item.value;
this.set(key, result, true);
} else {
this.remove(key, true);
this.delete(key, true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/tiny-lru.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/tiny-lru.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tiny-lru",
"description": "Tiny LRU cache for Client or Server",
"version": "5.1.1",
"version": "5.1.2",
"homepage": "https://github.com/avoidwork/tiny-lru",
"author": "Jason Mulligan <jason.mulligan@avoidwork.com>",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/lru.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

evict () {
if (this.length > 0) {
this.remove(this.last, true);
this.delete(this.last, true);
}

return this;
Expand All @@ -59,7 +59,7 @@
result = item.value;
this.set(key, result, true);
} else {
this.remove(key, true);
this.delete(key, true);
}
}

Expand Down

0 comments on commit 37ad9b8

Please sign in to comment.