aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcuishuang <imcusg@gmail.com>2025-02-27 12:58:15 +0800
committerGopher Robot <gobot@golang.org>2025-02-28 12:03:19 -0800
commitbbc689cf5cfb1b9f9ea88939690590d3521c2487 (patch)
tree31c80888feeef68711e39d6572a17305ea168a3d
parent7292932d45d55c7199324ab0027cc86e8198aa22 (diff)
downloadgo-x-crypto-bbc689cf5cfb1b9f9ea88939690590d3521c2487.tar.xz
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 <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Nicola Murino <nicola.murino@gmail.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
-rw-r--r--ssh/tcpip.go2
1 files changed, 1 insertions, 1 deletions
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 {