Skip to content

Commit

Permalink
fix: explicit comparison for boolean-like value
Browse files Browse the repository at this point in the history
  • Loading branch information
i10416 committed Jun 18, 2024
1 parent e54ca92 commit bbaa6a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function setup() {
// Search local file system cache for sccache.
// This is useful when actions run on a self-hosted runner.
let sccacheHome = find('sccache', version);
if (!sccacheHome) {
if (sccacheHome === '') {
const sccachePath = await downloadSCCache(version);
if (sccachePath instanceof Error) {
core.setFailed(sccachePath.message);
Expand Down

0 comments on commit bbaa6a8

Please sign in to comment.