mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Simplify per-language platform eligibility checks
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
3
lib/entry-points.js
generated
3
lib/entry-points.js
generated
@@ -151620,8 +151620,7 @@ async function getPerLanguageBundleLanguage({
|
||||
);
|
||||
}
|
||||
}
|
||||
const supportedLanguages = platform2 === void 0 ? void 0 : PER_LANGUAGE_BUNDLE_LANGUAGES[platform2];
|
||||
if (!supportedLanguages?.has(language)) {
|
||||
if (platform2 === void 0 || !PER_LANGUAGE_BUNDLE_LANGUAGES[platform2].has(language)) {
|
||||
return explain(
|
||||
`no per-language bundle is published for ${language} on ${platform2 ?? "an unknown platform"}`
|
||||
);
|
||||
|
||||
@@ -117,11 +117,10 @@ export async function getPerLanguageBundleLanguage(
|
||||
}
|
||||
}
|
||||
|
||||
const supportedLanguages =
|
||||
platform === undefined
|
||||
? undefined
|
||||
: PER_LANGUAGE_BUNDLE_LANGUAGES[platform];
|
||||
if (!supportedLanguages?.has(language)) {
|
||||
if (
|
||||
platform === undefined ||
|
||||
!PER_LANGUAGE_BUNDLE_LANGUAGES[platform].has(language)
|
||||
) {
|
||||
return explain(
|
||||
`no per-language bundle is published for ${language} on ${platform ?? "an unknown platform"}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user