diff --git a/core/errgroup/errgroup.go b/core/errgroup/errgroup.go index ba8c4dc0..1f30cb19 100644 --- a/core/errgroup/errgroup.go +++ b/core/errgroup/errgroup.go @@ -330,11 +330,9 @@ func isNotNil(err error) bool { return true } - if len(g.children) > 0 { - for _, child := range g.children { - if isNotNil(child) { - return true - } + for _, child := range g.children { + if isNotNil(child) { + return true } }