Skip to content

Commit

Permalink
Remove return error not needed
Browse files Browse the repository at this point in the history
All err in this function are local to statements
  • Loading branch information
bitomaxsp committed May 22, 2023
1 parent 6836af7 commit 864d469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 864d469

Please sign in to comment.