Skip to content

Commit

Permalink
fix: cache rm unused branch (#3889)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag authored Nov 27, 2024
1 parent d006e90 commit 20fd58c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/interceptor/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ function handleResult (
if (!result) {
return handleUncachedResponse(dispatch, globalOpts, cacheKey, handler, opts, reqCacheControl)
}
if (!result.body && opts.method !== 'HEAD') {
throw new Error('body is undefined but method isn\'t HEAD')
}

const now = Date.now()
if (now > result.deleteAt) {
Expand Down

0 comments on commit 20fd58c

Please sign in to comment.