Skip to content

Commit 14d1421

Browse files
author
Per Goncalves da Silva
committed
Address lint errors
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 83008fd commit 14d1421

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pkg/manager/client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ var _ = Describe("NewCachingClientBuilder", func() {
8787
Expect(cl.Create(context.TODO(), cfgMap)).To(Succeed())
8888
})
8989
AfterEach(func() {
90-
Eventually(func() error { return client.IgnoreNotFound(cl.Delete(context.TODO(), pod)) }).Should(BeNil())
91-
Eventually(func() error { return client.IgnoreNotFound(cl.Delete(context.TODO(), cfgMap)) }).Should(BeNil())
92-
Eventually(func() error { return client.IgnoreNotFound(cl.Delete(context.TODO(), ns)) }).Should(BeNil())
90+
Eventually(func() error { return client.IgnoreNotFound(cl.Delete(context.TODO(), pod)) }).Should(Succeed())
91+
Eventually(func() error { return client.IgnoreNotFound(cl.Delete(context.TODO(), cfgMap)) }).Should(Succeed())
92+
Eventually(func() error { return client.IgnoreNotFound(cl.Delete(context.TODO(), ns)) }).Should(Succeed())
9393
})
9494

9595
When("caches are not started", func() {

pkg/reconciler/reconciler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,12 @@ func SkipPrimaryGVKSchemeRegistration(skip bool) Option {
324324
// concurrent reconciles that the controller will run.
325325
//
326326
// The default is 1.
327-
func WithMaxConcurrentReconciles(max int) Option {
327+
func WithMaxConcurrentReconciles(value int) Option {
328328
return func(r *Reconciler) error {
329-
if max < 1 {
329+
if value < 1 {
330330
return errors.New("maxConcurrentReconciles must be at least 1")
331331
}
332-
r.maxConcurrentReconciles = max
332+
r.maxConcurrentReconciles = value
333333
return nil
334334
}
335335
}

0 commit comments

Comments
 (0)