Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 23, 2024
1 parent 59bcb75 commit 9b7b216
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/util/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,16 @@ function makeCacheKey (opts) {
throw new Error('opts.headers is not an object')
}

/**
* @type {import('../../types/cache-interceptor.d.ts').default.CacheKey}
*/
const cacheKey = {
return {
origin: opts.origin.toString(),
method: opts.method,
path: opts.path,
headers
}

return cacheKey
}

/**
* @param {any} value
* @param {any} key
*/
function assertCacheKey (key) {
if (typeof key !== 'object') {
Expand Down

0 comments on commit 9b7b216

Please sign in to comment.