Skip to content

Commit 35329b0

Browse files
author
Ariel Kass
committed
resolving wsl_v5 linter issues
Signed-off-by: Ariel Kass <[email protected]>
1 parent 474790d commit 35329b0

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

controllers/replication/replication_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import (
2626

2727
func TestGetMessageFromError(t *testing.T) {
2828
t.Parallel()
29+
2930
tests := []struct {
3031
name string
3132
err error

controllers/volumereplication_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func (r *VolumeReplicationReconciler) Reconcile(ctx context.Context, req ctrl.Re
100100
vrcObj, err := r.getVolumeReplicationClass(ctx, logger, instance.Spec.VolumeReplicationClass)
101101
if err != nil {
102102
setFailureCondition(instance)
103+
103104
uErr := r.updateReplicationStatus(ctx, instance, logger, getCurrentReplicationState(instance), err.Error())
104105
if uErr != nil {
105106
logger.Error(uErr, "failed to update volumeReplication status", "VRName", instance.Name)
@@ -293,6 +294,7 @@ func (r *VolumeReplicationReconciler) Reconcile(ctx context.Context, req ctrl.Re
293294
setFailureCondition(instance)
294295

295296
msg := replication.GetMessageFromError(err)
297+
296298
uErr := r.updateReplicationStatus(ctx, instance, logger, getCurrentReplicationState(instance), msg)
297299
if uErr != nil {
298300
logger.Error(uErr, "failed to update volumeReplication status", "VRName", instance.Name)
@@ -430,6 +432,7 @@ func (r *VolumeReplicationReconciler) SetupWithManager(mgr ctrl.Manager, cfg *co
430432
pred := predicate.GenerationChangedPredicate{}
431433

432434
r.DriverConfig = cfg
435+
433436
gClient, err := grpcClient.New(cfg.DriverEndpoint, cfg.RPCTimeout)
434437
if err != nil {
435438
r.Log.Error(err, "failed to create GRPC Client", "Endpoint", cfg.DriverEndpoint, "GRPC Timeout", cfg.RPCTimeout)

controllers/volumereplicationclass_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ var mockVolumeReplicationClassObj = &replicationv1alpha1.VolumeReplicationClass{
3939

4040
func TestGetVolumeReplicaClass(t *testing.T) {
4141
t.Parallel()
42+
4243
testcases := []struct {
4344
createVrc bool
4445
errorExpected bool

pkg/client/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func New(address string, timeout time.Duration) (*Client, error) {
4747
if err != nil {
4848
return client, err
4949
}
50+
5051
client.Client = conn
5152
client.Timeout = timeout
5253

0 commit comments

Comments
 (0)