Skip to content

Commit

Permalink
fix(fetch-cache): remove unecessary !cached check
Browse files Browse the repository at this point in the history
  • Loading branch information
samcx committed Apr 22, 2024
1 parent cc9e714 commit a5831b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default class FetchCache implements CacheHandler {
const cached: IncrementalCacheValue = await res.json()
const cachedParsed = zCachedFetchValue.safeParse(cached)

if (!cached || !cachedParsed.success) {
if (!cachedParsed.success) {
this.debug && console.log({ cached })
throw new Error('invalid cache value')
}
Expand Down

0 comments on commit a5831b1

Please sign in to comment.