Skip to content

Commit 4cc9576

Browse files
committed
Improve variable name
1 parent bde5694 commit 4cc9576

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

lib/autobuild.js

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

lib/autobuild.js.map

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

src/autobuild.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ export async function determineAutobuildLanguages(
5454
* This special case behavior should be removed as part of the next major
5555
* version of the CodeQL Action.
5656
*/
57-
const autobuildLanguagesNoGo = autobuildLanguages.filter(
57+
const autobuildLanguagesWithoutGo = autobuildLanguages.filter(
5858
(l) => l !== Language.go
5959
);
6060

6161
const languages: Language[] = [];
6262
// First run the autobuilder for the first non-Go traced language, if one
6363
// exists.
64-
if (autobuildLanguagesNoGo[0] !== undefined) {
65-
languages.push(autobuildLanguagesNoGo[0]);
64+
if (autobuildLanguagesWithoutGo[0] !== undefined) {
65+
languages.push(autobuildLanguagesWithoutGo[0]);
6666
}
6767
// If Go is requested, run the Go autobuilder last to ensure it doesn't
6868
// interfere with the other autobuilder.
69-
if (autobuildLanguages.length !== autobuildLanguagesNoGo.length) {
69+
if (autobuildLanguages.length !== autobuildLanguagesWithoutGo.length) {
7070
languages.push(Language.go);
7171
}
7272

@@ -79,11 +79,11 @@ export async function determineAutobuildLanguages(
7979
// categories, potentially leading to a "stale tips" situation where alerts
8080
// that should be fixed remain on a repo since they are linked to SARIF
8181
// categories that are no longer updated.
82-
if (autobuildLanguagesNoGo.length > 1) {
82+
if (autobuildLanguagesWithoutGo.length > 1) {
8383
logger.warning(
8484
`We will only automatically build ${languages.join(
8585
" and "
86-
)} code. If you wish to scan ${autobuildLanguagesNoGo
86+
)} code. If you wish to scan ${autobuildLanguagesWithoutGo
8787
.slice(1)
8888
.join(" and ")}, you must replace this call with custom build steps.`
8989
);

0 commit comments

Comments
 (0)