mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Use Result.orElse for bundle extraction paths
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
4
lib/entry-points.js
generated
4
lib/entry-points.js
generated
@@ -152546,7 +152546,9 @@ var downloadCodeQL = async function(source, apiDetails, tarVersion, tempDir, log
|
||||
);
|
||||
}
|
||||
const toolcacheDestination = getToolcacheDestination({ logger }, source);
|
||||
const extractedBundlePath = toolcacheDestination.isSuccess() ? toolcacheDestination.value : getTempExtractionDir(tempDir);
|
||||
const extractedBundlePath = toolcacheDestination.orElse(
|
||||
getTempExtractionDir(tempDir)
|
||||
);
|
||||
const statusReport = await downloadAndExtract(
|
||||
codeqlURL,
|
||||
compressionMethod,
|
||||
|
||||
Reference in New Issue
Block a user