Skip to content

Commit

Permalink
chore: ignore error in copy API, using nolint:errcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Apr 25, 2024
1 parent 18df9d0 commit 70f1eac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions port_forwarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{}
}()

Expand Down

0 comments on commit 70f1eac

Please sign in to comment.