fix: Adjust the lint issues

Signed-off-by: ZPascal <pascal.zimmermann@theiotstudio.com>
This commit is contained in:
ZPascal
2026-05-26 17:55:09 +02:00
parent 23e6a5672f
commit d019ad3a16
2 changed files with 3 additions and 7 deletions
+2 -6
View File
@@ -8,6 +8,7 @@ import (
"errors"
"fmt"
"maps"
"slices"
"sort"
"strings"
@@ -165,12 +166,7 @@ func yamlNodeContainsNeedsOutputsExpr(node *yaml.Node) bool {
if node.Kind == yaml.ScalarNode {
return containsNeedsOutputsExpr(node.Value)
}
for _, child := range node.Content {
if yamlNodeContainsNeedsOutputsExpr(child) {
return true
}
}
return false
return slices.ContainsFunc(node.Content, yamlNodeContainsNeedsOutputsExpr)
}
// containsNeedsOutputsExpr returns true when s contains a GitHub Actions
+1 -1
View File
@@ -60,7 +60,7 @@ matrix:
want: false,
},
{
name: "empty strategy",
name: "empty strategy",
strategy: "",
want: false,
},