style(workflow): adopt gate formatting simplification in the workflow.call tests

This commit is contained in:
sam committed 2026-09-26 13:36:41 +10:00
1 parent 70e436377c
commit 93906f8fae
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 ""