Avoid producing the same-ish message twice

This commit is contained in:
Michael B. Gale
2026-10-28 12:35:56 +00:00
parent 5547a3567f
commit 84e80cea7e
2 changed files with 5 additions and 0 deletions

1
lib/entry-points.js generated
View File

@@ -194001,6 +194001,7 @@ async function checkRunnerSupportsTracedAnalysis(action, config, codeql) {
"macOS",
version
);
return;
}
const xcodeVer = xcodeVersion(action.logger);
if (xcodeVer !== void 0 && xcodeVer.major >= UNSUPPORTED_XCODE_FOR_TRACED) {

View File

@@ -156,6 +156,10 @@ export async function checkRunnerSupportsTracedAnalysis(
"macOS",
version,
);
// Return early so that we don't end up producing more-or-less the same log message/diagnostic
// twice. The ones for macOS already comment on the Xcode requirement.
return;
}
// Determining whether the Xcode version is supported only makes sense on macOS, so we only do it