From bbc689cf5cfb1b9f9ea88939690590d3521c2487 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Thu, 27 Feb 2025 12:58:15 +0800 Subject: [PATCH] ssh: use a more straightforward return value Change-Id: Ie5ee95efe4924f75719087c6fe8d4867607934bf Reviewed-on: https://go-review.googlesource.com/c/crypto/+/653198 Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Pratt Reviewed-by: Nicola Murino Auto-Submit: Ian Lance Taylor --- ssh/tcpip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh/tcpip.go b/ssh/tcpip.go index ef5059a..93d844f 100644 --- a/ssh/tcpip.go +++ b/ssh/tcpip.go @@ -459,7 +459,7 @@ func (c *Client) dial(laddr string, lport int, raddr string, rport int) (Channel return nil, err } go DiscardRequests(in) - return ch, err + return ch, nil } type tcpChan struct {