diff --git a/pkg/action/common.go b/pkg/action/common.go index b2f0922c..7397d5d0 100644 --- a/pkg/action/common.go +++ b/pkg/action/common.go @@ -176,7 +176,7 @@ func runFailurePlan(ctx context.Context, releaseNamespace string, failedPlan *pl return nil, nonCritErrs, critErrs.Add(fmt.Errorf("build failure plan: %w", err)) } - if _, planIsUseless := lo.Find(failurePlan.Operations(), func(op *plan.Operation) bool { + if planIsUseless := lo.NoneBy(failurePlan.Operations(), func(op *plan.Operation) bool { switch op.Category { case plan.OperationCategoryResource, plan.OperationCategoryTrack, plan.OperationCategoryRelease: return true