Skip to content

Commit

Permalink
fix: add missing check for undefined cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tchx84 committed Mar 28, 2024
1 parent 46906c4 commit ba9b049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ async function testApplication(directory, manifest) {
}

// If the key and ID match, the cache is disabled or already saved
if (!!cacheId.localeCompare(cacheKey, undefined, { sensitivity: 'accent' }))
if (!!cacheId?.localeCompare(cacheKey, undefined, { sensitivity: 'accent' }))

Check failure

Code scanning / ESLint

disallow unnecessary boolean casts Error

Redundant double negation.
await cache.saveCache([stateDir], cacheKey);
}

Expand Down

0 comments on commit ba9b049

Please sign in to comment.