mirror of
https://github.com/github/codeql-action
synced 2026-12-01 13:49:37 +08:00
Avoid producing the same-ish message twice
This commit is contained in:
2 files changed
+5
No files matched your search
Generated
+1
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user