Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tulsishah committed Apr 29, 2024
1 parent 63781bf commit db3245c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/storage/storage_handle.go
Expand Up @@ -80,8 +80,7 @@ func createGRPCControlClientHandle(ctx context.Context, clientConfig *storageuti
var clientOpts []option.ClientOption
clientOpts, err = createClientOptionForGRPCClient(clientConfig)
if err != nil {
err = fmt.Errorf("Error in getting clientOpts for gRPC client: %w", err)
return
return nil, fmt.Errorf("Error in getting clientOpts for gRPC client: %w", err)
}
sc, err = control.NewStorageControlClient(ctx, clientOpts...)
if err != nil {
Expand Down Expand Up @@ -109,8 +108,7 @@ func createGRPCClientHandle(ctx context.Context, clientConfig *storageutil.Stora
var clientOpts []option.ClientOption
clientOpts, err = createClientOptionForGRPCClient(clientConfig)
if err != nil {
err = fmt.Errorf("Error in getting clientOpts for gRPC client: %w", err)
return
return nil, fmt.Errorf("Error in getting clientOpts for gRPC client: %w", err)
}

sc, err = storage.NewGRPCClient(ctx, clientOpts...)
Expand Down

0 comments on commit db3245c

Please sign in to comment.