Skip to content

Commit 6549d44

Browse files
authored
Return null as what’s expected
1 parent 2318400 commit 6549d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Cache/LRUCache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class LRUCache {
1313
}
1414

1515
get(key) {
16-
return this.cache.get(key);
16+
return this.cache.get(key) || null;
1717
}
1818

1919
put(key, value, ttl = this.ttl) {

0 commit comments

Comments
 (0)