From f51872c617f1beb81a73b3444ffc43dad3ef4e1f Mon Sep 17 00:00:00 2001 From: pat-s Date: Fri, 1 Nov 2024 00:44:18 +0100 Subject: [PATCH] remove defer rc.Close() --- pipeline/backend/kubernetes/kubernetes.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pipeline/backend/kubernetes/kubernetes.go b/pipeline/backend/kubernetes/kubernetes.go index 0e1a399f86..e60c84cc77 100644 --- a/pipeline/backend/kubernetes/kubernetes.go +++ b/pipeline/backend/kubernetes/kubernetes.go @@ -379,7 +379,6 @@ func (e *kube) TailStep(ctx context.Context, step *types.Step, taskUUID string) go func() { defer logs.Close() defer wc.Close() - defer rc.Close() _, err = io.Copy(wc, logs) if err != nil {