From f89592ec3739b88838c9932cde115381037e9d5f Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Mon, 16 Dec 2024 17:09:57 +0300 Subject: [PATCH] fix: remove var Signed-off-by: Vladislav Sukhin --- pkg/testworkflows/testworkflowprocessor/processor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/testworkflows/testworkflowprocessor/processor.go b/pkg/testworkflows/testworkflowprocessor/processor.go index 9b65608d5f..870eed6df6 100644 --- a/pkg/testworkflows/testworkflowprocessor/processor.go +++ b/pkg/testworkflows/testworkflowprocessor/processor.go @@ -176,8 +176,7 @@ func (p *processor) Bundle(ctx context.Context, workflow *testworkflowsv1.TestWo return nil, errors.Wrap(err, "finalizing Pvc") } } - pvcNames := common.MapSlice(pvcs, func(p corev1.PersistentVolumeClaim) string { return p.Name }) - options.Config.Execution.PvcNames = pvcNames + options.Config.Execution.PvcNames = common.MapSlice(pvcs, func(p corev1.PersistentVolumeClaim) string { return p.Name }) // Finalize Secrets secrets := append(layer.Secrets(), options.Secrets...)