Skip to content

Commit

Permalink
Remove Go 1.20 type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesOwenHall committed Dec 20, 2023
1 parent f78e663 commit 38c8884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/reconcile/reconcile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 38c8884

Please sign in to comment.