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

4
lib/entry-points.js generated
View File

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