From 26c199097d468da115075e901adf486f9e7282c0 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sat, 26 Sep 2026 13:34:29 +1000 Subject: [PATCH] style(workflow): adopt gate formatting simplification in the workflow.call tests --- internal/domain/workflow/workflow_call_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/domain/workflow/workflow_call_test.go b/internal/domain/workflow/workflow_call_test.go index 01ea6b731..d66f9fa06 100644 --- a/internal/domain/workflow/workflow_call_test.go +++ b/internal/domain/workflow/workflow_call_test.go @@ -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 ""