From 864d46913de9e6430b8e87e18f750dbe2a247ca8 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 22 May 2023 14:44:53 +0200 Subject: [PATCH] Remove return error not needed All err in this function are local to statements --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 29fac722..fcb67c34 100644 --- a/client.go +++ b/client.go @@ -193,7 +193,7 @@ const ( ) // Connect establishes a secure channel and creates a new session. -func (c *Client) Connect(ctx context.Context) (err error) { +func (c *Client) Connect(ctx context.Context) error { // todo(fs): remove with v0.5.0 if c.cfgerr != nil { return c.cfgerr