style(workflow): adopt gate formatting simplification in the workflow.call tests
This commit is contained in:
1 parent
d38ef5a4ec
commit
26c199097d
1 file changed
+3
-3
@@ -172,9 +172,9 @@ func collectionOf(yamls ...string) WorkflowDefinitionCollection {
|
||||
}
|
||||
|
||||
func yamlID(y string) string {
|
||||
for _, line := range strings.Split(y, "\n") {
|
||||
if strings.HasPrefix(line, "id: ") {
|
||||
return strings.TrimPrefix(line, "id: ")
|
||||
for line := range strings.SplitSeq(y, "\n") {
|
||||
if after, ok := strings.CutPrefix(line, "id: "); ok {
|
||||
return after
|
||||
}
|
||||
}
|
||||
return ""
|
||||
|
||||
Reference in new issue
Block a user