Skip to content

Commit f5a20b1

Browse files
author
Ariel Kass
committed
resolving nlreturn linter warnings
Signed-off-by: Ariel Kass <[email protected]>
1 parent 067f717 commit f5a20b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/client/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type Client struct {
3636
func connect(address string, timeout time.Duration) (*grpc.ClientConn, error) {
3737
ctx, cancel := context.WithTimeout(context.Background(), timeout)
3838
defer cancel()
39+
3940
return connection.Connect(ctx, address, metrics.NewCSIMetricsManager(""), connection.OnConnectionLoss(connection.ExitOnConnectionLoss()))
4041
}
4142

@@ -56,6 +57,7 @@ func New(address string, timeout time.Duration) (*Client, error) {
5657
func (c *Client) Probe() error {
5758
ctx, cancel := context.WithTimeout(context.Background(), c.Timeout)
5859
defer cancel()
60+
5961
return rpc.ProbeForever(ctx, c.Client, c.Timeout)
6062
}
6163

0 commit comments

Comments
 (0)