From 21c9e7c6dba02ad97179bb987477ad9abe12dad2 Mon Sep 17 00:00:00 2001 From: Caleb Brose <5447118+cmbrose@users.noreply.github.com> Date: Thu, 19 Jan 2023 20:44:38 -0600 Subject: [PATCH] Linter and comment --- pkg/liveshare/port_forwarder.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/liveshare/port_forwarder.go b/pkg/liveshare/port_forwarder.go index 9b47633fc..5f2742209 100644 --- a/pkg/liveshare/port_forwarder.go +++ b/pkg/liveshare/port_forwarder.go @@ -196,7 +196,8 @@ func (fwd *PortForwarder) handleConnection(ctx context.Context, id ChannelID, co _, err := io.Copy(w, r) errs <- err - w.CloseWrite() + // Ignore errors here, we call the full Close() later and catch that error + _ = w.CloseWrite() } var (