Use Result.orElse for bundle extraction paths

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Henry Mercer
2026-09-16 19:55:13 +01:00
parent f4fa111630
commit 69f47159b1
2 changed files with 6 additions and 4 deletions

View File

@@ -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,