Skip to content

Commit

Permalink
Merge pull request #1207 from github/edoardo/fix-warning
Browse files Browse the repository at this point in the history
TRAP Caching: Unset missing cache rather than setting to `undefined`
  • Loading branch information
edoardopirovano committed Aug 23, 2022
2 parents c2c0a29 + 1e5376a commit 3e49948
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/trap-caching.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/trap-caching.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/trap-caching.ts
Expand Up @@ -113,7 +113,7 @@ export async function downloadTrapCaches(
// still just an empty directory. There's no reason to tell the extractor to use it,
// so let's unset the entry in the map so we don't set any extractor options.
logger.info(`No TRAP cache found in Actions cache for ${language}`);
result[language] = undefined;
delete result[language];
}
}

Expand Down

0 comments on commit 3e49948

Please sign in to comment.