Skip to content

Commit

Permalink
resources: underscore for unsed parameters
Browse files Browse the repository at this point in the history
Fixed unused parameter errors found by revive-v1.3.7.

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
  • Loading branch information
synarete authored and mergify[bot] committed Feb 13, 2024
1 parent 7da7a45 commit abfb931
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/resources/smbshare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func TestTransferOwnership(t *testing.T) {
ts := metav1.Now()
s3.SetDeletionTimestamp(&ts)
m.client.(*fakeClient).clientGet = func(
ctx context.Context,
_ context.Context,
nn types.NamespacedName,
obj rtclient.Object) error {
// ---
Expand Down Expand Up @@ -198,9 +198,9 @@ func TestTransferOwnership(t *testing.T) {
assert.True(t, changed)

m.client.(*fakeClient).clientGet = func(
ctx context.Context,
nn types.NamespacedName,
obj rtclient.Object) error {
_ context.Context,
_ types.NamespacedName,
_ rtclient.Object) error {
// ---
return fmt.Errorf("wild failure")
}
Expand Down

0 comments on commit abfb931

Please sign in to comment.