Fix language inclusion test
`in` checks the indices of an array, not the values.
This commit is contained in:
parent
14d7039828
commit
955290300a
3 changed files with 3 additions and 3 deletions
|
|
@ -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."
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue