From 10f341eb5739200d453ba07ae80fb6b71004841b Mon Sep 17 00:00:00 2001 From: Steven Hartland Date: Fri, 22 Nov 2024 18:30:39 +0000 Subject: [PATCH] chore: clarify why visit it called before iterating --- wait/walk.go | 1 + 1 file changed, 1 insertion(+) diff --git a/wait/walk.go b/wait/walk.go index 2571edcff5..4685e50088 100644 --- a/wait/walk.go +++ b/wait/walk.go @@ -43,6 +43,7 @@ func walk(root *Strategy, visit VisitFunc) error { return nil } + // Allow the visit function to customize the behaviour of the walk before visiting the children. if err := visit(*root); err != nil { if errors.Is(err, VisitRemove) { *root = nil