Skip to content

Commit 38756ad

Browse files
author
Ariel Kass
committed
resolving some revive linter issues
Signed-off-by: Ariel Kass <[email protected]>
1 parent 9acb9a6 commit 38756ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

controllers/suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"path/filepath"
2121
"testing"
2222

23-
. "github.com/onsi/ginkgo/v2"
24-
. "github.com/onsi/gomega"
23+
"github.com/onsi/ginkgo/v2"
24+
"github.com/onsi/gomega"
2525
"k8s.io/client-go/kubernetes/scheme"
2626
"sigs.k8s.io/controller-runtime/pkg/client"
2727
"sigs.k8s.io/controller-runtime/pkg/envtest"

controllers/volumereplication_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (r *VolumeReplicationReconciler) Reconcile(ctx context.Context, req ctrl.Re
197197
}
198198

199199
logger.Info("volume handle", "VolumeHandleName", volumeHandle)
200-
replicationSource, err := r.getReplicationSource(logger, instance.Spec.DataSource.Kind, volumeHandle)
200+
replicationSource, err := r.getReplicationSource(instance.Spec.DataSource.Kind, volumeHandle)
201201
if err != nil {
202202
logger.Error(err, "failed to update volumeReplication source", "VRName", instance.Name)
203203

@@ -675,7 +675,7 @@ func (r *VolumeReplicationReconciler) enableReplication(logger logr.Logger, repl
675675
// currently we provide Snapshot and PVC, the default case allows the provisioner to still create a volume
676676
// so that an external controller can act upon it. Additional DataSource types can be added here with
677677
// an appropriate implementation function.
678-
func (r *VolumeReplicationReconciler) getReplicationSource(logger logr.Logger, kind string, volumeHandle string) (*replicationlib.ReplicationSource, error) {
678+
func (r *VolumeReplicationReconciler) getReplicationSource(kind string, volumeHandle string) (*replicationlib.ReplicationSource, error) {
679679
switch kind {
680680
case pvcDataSource:
681681
volumeSource := replicationlib.ReplicationSource_Volume{

0 commit comments

Comments
 (0)