Skip to content

Commit

Permalink
fix: correct error check in check connections (GoogleCloudPlatform#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
enocom authored Dec 7, 2022
1 parent 9d5db57 commit 8513d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func (c *Client) CheckConnections(ctx context.Context) error {
return
}
cErr := conn.Close()
if err != nil {
if cErr != nil {
errCh <- fmt.Errorf("%v: %v", inst, cErr)
}
}(m.inst)
Expand Down

0 comments on commit 8513d07

Please sign in to comment.