Skip to content

Commit 69f4715

Browse files
henrymercerCopilot
andcommitted
Use Result.orElse for bundle extraction paths
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent f4fa111 commit 69f4715

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/setup-codeql.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -880,9 +880,9 @@ export const downloadCodeQL = async function (
880880
}
881881

882882
const toolcacheDestination = getToolcacheDestination({ logger }, source);
883-
const extractedBundlePath = toolcacheDestination.isSuccess()
884-
? toolcacheDestination.value
885-
: getTempExtractionDir(tempDir);
883+
const extractedBundlePath = toolcacheDestination.orElse(
884+
getTempExtractionDir(tempDir),
885+
);
886886

887887
const statusReport = await downloadAndExtract(
888888
codeqlURL,

0 commit comments

Comments
 (0)