Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 15, 2024
1 parent 4e16205 commit b6ddf8f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/cache/memory-cache-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ class MemoryCacheStore {
this.#map.set(topLevelKey, cachedPaths)
}

let value = cachedPaths.get(key.method)
if (!value) {
value = []
cachedPaths.set(key.method, value)
let values = cachedPaths.get(key.method)
if (!values) {
values = []
cachedPaths.set(key.method, values)
}

return value
return values
}

#prune () {
Expand Down

0 comments on commit b6ddf8f

Please sign in to comment.