TRAP Caching: Unset missing cache rather than setting to undefined

This commit is contained in:
Edoardo Pirovano 2022-08-23 15:39:05 +01:00
parent c2c0a2908e
commit 1e5376ae5f
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
3 changed files with 3 additions and 3 deletions

View file

@ -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];
}
}