Skip to content

Commit 9552903

Browse files
committed
Fix language inclusion test
`in` checks the indices of an array, not the values.
1 parent 14d7039 commit 9552903

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/analyze-action.js

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

lib/analyze-action.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/analyze-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ async function runGoAutobuilderIfLegacyWorkflow(
153153
);
154154
return;
155155
}
156-
if (!(Language.go in config.languages)) {
156+
if (!config.languages.includes(Language.go)) {
157157
logger.info(
158158
"Won't run the Go autobuilder since Go analysis is not enabled."
159159
);

0 commit comments

Comments
 (0)