From 70f1eac89dbb05cbd0c1b4d722db3bcb8b587fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Thu, 25 Apr 2024 18:04:28 +0200 Subject: [PATCH] chore: ignore error in copy API, using nolint:errcheck --- port_forwarding.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/port_forwarding.go b/port_forwarding.go index eb9f7456cf..98b66dc307 100644 --- a/port_forwarding.go +++ b/port_forwarding.go @@ -326,12 +326,12 @@ func (pf *PortForwarder) runTunnel(ctx context.Context, remote net.Conn) { done := make(chan struct{}, 2) go func() { - _, _ = io.Copy(local, remote) + io.Copy(local, remote) //nolint:errcheck // Nothing we can usefully do with the error done <- struct{}{} }() go func() { - _, _ = io.Copy(remote, local) + io.Copy(remote, local) //nolint:errcheck // Nothing we can usefully do with the error done <- struct{}{} }()