diff --git a/pkg/engine/handlers/validation/validate_resource.go b/pkg/engine/handlers/validation/validate_resource.go index 9229b4bb00..d1a45e7b65 100644 --- a/pkg/engine/handlers/validation/validate_resource.go +++ b/pkg/engine/handlers/validation/validate_resource.go @@ -198,9 +198,6 @@ func (v *validator) validateForEach(ctx context.Context) *engineapi.RuleResponse applyCount += count } if applyCount == 0 { - if v.forEach == nil { - return nil - } return nil } return engineapi.RulePass(v.rule.Name, engineapi.Validation, "rule passed")