Skip to content

Commit 195e0cb

Browse files
author
Per Goncalves da Silva
committed
Fix lint issues
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent d88b1c3 commit 195e0cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/reconciler/reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ func WithPauseReconcileHandler(handler PauseReconcileHandlerFunc) Option {
458458
// PauseReconcileIfAnnotationTrue returns a PauseReconcileHandlerFunc that pauses reconciliation if the given
459459
// annotation is present and set to "true"
460460
func PauseReconcileIfAnnotationTrue(annotationName string) PauseReconcileHandlerFunc {
461-
return func(ctx context.Context, obj *unstructured.Unstructured) (bool, error) {
461+
return func(_ context.Context, obj *unstructured.Unstructured) (bool, error) {
462462
if v, ok := obj.GetAnnotations()[annotationName]; ok && v == "true" {
463463
return true, nil
464464
}

pkg/reconciler/reconciler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ var _ = Describe("Reconciler", func() {
14291429
It("pauses reconciliation", func() {
14301430
By("adding a pause-reconcile handler to the Reconciler", func() {
14311431
pauseHandler := WithPauseReconcileHandler(PauseReconcileIfAnnotationTrue("my.domain/pause-reconcile"))
1432-
pauseHandler(r)
1432+
Expect(pauseHandler(r)).To(Succeed())
14331433
})
14341434

14351435
By("adding the pause-reconcile annotation to the CR", func() {

0 commit comments

Comments
 (0)