Skip to content

Commit

Permalink
Fix language inclusion test
Browse files Browse the repository at this point in the history
`in` checks the indices of an array, not the values.
  • Loading branch information
henrymercer committed Aug 31, 2022
1 parent 14d7039 commit 9552903
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/analyze-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/analyze-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/analyze-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async function runGoAutobuilderIfLegacyWorkflow(
);
return;
}
if (!(Language.go in config.languages)) {
if (!config.languages.includes(Language.go)) {
logger.info(
"Won't run the Go autobuilder since Go analysis is not enabled."
);
Expand Down

0 comments on commit 9552903

Please sign in to comment.