Skip to content

Commit

Permalink
fix: ensure typo is boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats authored Feb 23, 2019
1 parent ae88523 commit b0d396e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = ({
const url = urlResolve('http://localhost', req.url)
const key = getKey(url)
const cachedResult = await cache.get(key)
const isHit = cachedResult && !hasForce
const isHit = !!cachedResult && !hasForce

const { etag: cachedEtag, ttl = defaultTtl, createdAt = Date.now(), data, ...props } = isHit
? cachedResult
Expand Down

0 comments on commit b0d396e

Please sign in to comment.