Skip to content

Commit 2b07365

Browse files
committed
Fix lint issues
1 parent b859a1a commit 2b07365

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

internal/mode/static/telemetry/collector_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func createGetCallsFunc() func(
4646
object client.Object,
4747
option ...client.GetOption,
4848
) error {
49-
return func(ctx context.Context, key client.ObjectKey, object client.Object, option ...client.GetOption) error {
49+
return func(_ context.Context, _ client.ObjectKey, object client.Object, option ...client.GetOption) error {
5050
Expect(option).To(BeEmpty())
5151

5252
switch typedObj := object.(type) {
@@ -414,7 +414,7 @@ var _ = Describe("Collector", Ordered, func() {
414414
It("should error if the kubernetes client errored when getting the Pod", func() {
415415
expectedErr := errors.New("there was an error getting the Pod")
416416
k8sClientReader.GetCalls(
417-
func(ctx context.Context, key client.ObjectKey, object client.Object, option ...client.GetOption) error {
417+
func(_ context.Context, _ client.ObjectKey, object client.Object, option ...client.GetOption) error {
418418
Expect(option).To(BeEmpty())
419419

420420
switch typedObj := object.(type) {
@@ -433,7 +433,7 @@ var _ = Describe("Collector", Ordered, func() {
433433
It("should error if the Pod's owner reference is nil", func() {
434434
expectedErr := errors.New("expected one owner reference of the NGF Pod, got 0")
435435
k8sClientReader.GetCalls(
436-
func(ctx context.Context, key client.ObjectKey, object client.Object, option ...client.GetOption) error {
436+
func(_ context.Context, _ client.ObjectKey, object client.Object, option ...client.GetOption) error {
437437
Expect(option).To(BeEmpty())
438438

439439
switch typedObj := object.(type) {
@@ -455,7 +455,7 @@ var _ = Describe("Collector", Ordered, func() {
455455
It("should error if the Pod has multiple owner references", func() {
456456
expectedErr := errors.New("expected one owner reference of the NGF Pod, got 2")
457457
k8sClientReader.GetCalls(
458-
func(ctx context.Context, key client.ObjectKey, object client.Object, option ...client.GetOption) error {
458+
func(_ context.Context, _ client.ObjectKey, object client.Object, option ...client.GetOption) error {
459459
Expect(option).To(BeEmpty())
460460

461461
switch typedObj := object.(type) {
@@ -486,7 +486,7 @@ var _ = Describe("Collector", Ordered, func() {
486486
It("should error if the Pod's owner reference is not a ReplicaSet", func() {
487487
expectedErr := errors.New("expected pod owner reference to be ReplicaSet, got Deployment")
488488
k8sClientReader.GetCalls(
489-
func(ctx context.Context, key client.ObjectKey, object client.Object, option ...client.GetOption) error {
489+
func(_ context.Context, _ client.ObjectKey, object client.Object, option ...client.GetOption) error {
490490
Expect(option).To(BeEmpty())
491491

492492
switch typedObj := object.(type) {
@@ -513,7 +513,7 @@ var _ = Describe("Collector", Ordered, func() {
513513
It("should error if the replica set's replicas is nil", func() {
514514
expectedErr := errors.New("replica set replicas was nil")
515515
k8sClientReader.GetCalls(
516-
func(ctx context.Context, key client.ObjectKey, object client.Object, option ...client.GetOption) error {
516+
func(_ context.Context, _ client.ObjectKey, object client.Object, option ...client.GetOption) error {
517517
Expect(option).To(BeEmpty())
518518

519519
switch typedObj := object.(type) {
@@ -544,7 +544,7 @@ var _ = Describe("Collector", Ordered, func() {
544544
It("should error if the kubernetes client errored when getting the ReplicaSet", func() {
545545
expectedErr := errors.New("there was an error getting the ReplicaSet")
546546
k8sClientReader.GetCalls(
547-
func(ctx context.Context, key client.ObjectKey, object client.Object, option ...client.GetOption) error {
547+
func(_ context.Context, _ client.ObjectKey, object client.Object, option ...client.GetOption) error {
548548
Expect(option).To(BeEmpty())
549549

550550
switch typedObj := object.(type) {

0 commit comments

Comments
 (0)