From 38c8884fb4837bae59e3c976b5bf5aba89616615 Mon Sep 17 00:00:00 2001 From: James Hall Date: Wed, 20 Dec 2023 13:14:30 -0500 Subject: [PATCH] Remove Go 1.20 type hints --- pkg/reconcile/reconcile_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/reconcile/reconcile_test.go b/pkg/reconcile/reconcile_test.go index 990926f2e3..fb6a88220a 100644 --- a/pkg/reconcile/reconcile_test.go +++ b/pkg/reconcile/reconcile_test.go @@ -151,7 +151,7 @@ var _ = Describe("reconcile", func() { It("should Get the object and call the ObjectReconciler", func() { var actual *corev1.ConfigMap - reconciler := reconcile.AsReconciler[*corev1.ConfigMap](testClient, &mockObjectReconciler{ + reconciler := reconcile.AsReconciler(testClient, &mockObjectReconciler{ reconcileFunc: func(ctx context.Context, cm *corev1.ConfigMap) (reconcile.Result, error) { actual = cm return reconcile.Result{}, nil @@ -170,7 +170,7 @@ var _ = Describe("reconcile", func() { Context("with an object that doesn't exist", func() { It("should not call the ObjectReconciler", func() { called := false - reconciler := reconcile.AsReconciler[*corev1.ConfigMap](testClient, &mockObjectReconciler{ + reconciler := reconcile.AsReconciler(testClient, &mockObjectReconciler{ reconcileFunc: func(ctx context.Context, cm *corev1.ConfigMap) (reconcile.Result, error) { called = true return reconcile.Result{}, nil