mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +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:
@@ -880,9 +880,9 @@ export const downloadCodeQL = async function (
|
||||
}
|
||||
|
||||
const toolcacheDestination = getToolcacheDestination({ logger }, source);
|
||||
const extractedBundlePath = toolcacheDestination.isSuccess()
|
||||
? toolcacheDestination.value
|
||||
: getTempExtractionDir(tempDir);
|
||||
const extractedBundlePath = toolcacheDestination.orElse(
|
||||
getTempExtractionDir(tempDir),
|
||||
);
|
||||
|
||||
const statusReport = await downloadAndExtract(
|
||||
codeqlURL,
|
||||
|
||||
Reference in New Issue
Block a user