From efbf8a2b1a67a84e18bda3a0a4a5f53c4651b658 Mon Sep 17 00:00:00 2001 From: tooptoop4 <33283496+tooptoop4@users.noreply.github.com> Date: Fri, 1 Nov 2024 06:56:49 +1100 Subject: [PATCH] Signed-off-by: tooptoop4 <33283496+tooptoop4@users.noreply.github.com> --- workflow/util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/util/util.go b/workflow/util/util.go index e7752f71d2aa..cb0145e27237 100644 --- a/workflow/util/util.go +++ b/workflow/util/util.go @@ -892,7 +892,7 @@ func FormulateRetryWorkflow(ctx context.Context, wf *wfv1.Workflow, restartSucce return nil, nil, err } - if (len(nodeFieldSelector) > 0 && len(nodeIDsToReset) == 0) { + if len(nodeFieldSelector) > 0 && len(nodeIDsToReset) == 0 { return nil, nil, errors.Errorf(errors.CodeBadRequest, "nodeFieldSelector did not match against any nodes") }