Skip to content

Commit 409f39c

Browse files
committed
apply nolintlint
Signed-off-by: sivchari <shibuuuu5@gmail.com>
1 parent ba0699a commit 409f39c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: pkg/cache/cache_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
15441544
return obtainedPodNames
15451545
}, ConsistOf(tc.expectedPods)))
15461546
for _, pod := range obtainedStructuredPodList.Items {
1547-
Expect(informer.Get(context.Background(), client.ObjectKeyFromObject(&pod), &pod)).To(Succeed()) //nolint:gosec // We don't retain the pointer
1547+
Expect(informer.Get(context.Background(), client.ObjectKeyFromObject(&pod), &pod)).To(Succeed()) // We don't retain the pointer
15481548
}
15491549

15501550
By("Checking with unstructured")
@@ -1564,7 +1564,7 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
15641564
return obtainedPodNames
15651565
}, ConsistOf(tc.expectedPods)))
15661566
for _, pod := range obtainedUnstructuredPodList.Items {
1567-
Expect(informer.Get(context.Background(), client.ObjectKeyFromObject(&pod), &pod)).To(Succeed()) //nolint:gosec // We don't retain the pointer
1567+
Expect(informer.Get(context.Background(), client.ObjectKeyFromObject(&pod), &pod)).To(Succeed()) // We don't retain the pointer
15681568
}
15691569

15701570
By("Checking with metadata")
@@ -1584,7 +1584,7 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
15841584
return obtainedPodNames
15851585
}, ConsistOf(tc.expectedPods)))
15861586
for _, pod := range obtainedMetadataPodList.Items {
1587-
Expect(informer.Get(context.Background(), client.ObjectKeyFromObject(&pod), &pod)).To(Succeed()) //nolint:gosec // We don't retain the pointer
1587+
Expect(informer.Get(context.Background(), client.ObjectKeyFromObject(&pod), &pod)).To(Succeed()) // We don't retain the pointer
15881588
}
15891589
},
15901590
Entry("when selectors are empty it has to inform about all the pods", selectorsTestCase{

0 commit comments

Comments
 (0)