From 27d1a68cd92305e22522acbd84256588ecf8d078 Mon Sep 17 00:00:00 2001 From: Miguel Angel Medina Mondragon Date: Sun, 9 Aug 2020 14:57:52 +0300 Subject: [PATCH] remove not needed --- docs/book/src/cronjob-tutorial/testdata/finalizer_example.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/book/src/cronjob-tutorial/testdata/finalizer_example.go b/docs/book/src/cronjob-tutorial/testdata/finalizer_example.go index 2443b334c16..2007e8a57d2 100644 --- a/docs/book/src/cronjob-tutorial/testdata/finalizer_example.go +++ b/docs/book/src/cronjob-tutorial/testdata/finalizer_example.go @@ -60,7 +60,7 @@ func (r *CronJobReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) { // registering our finalizer. if !containsString(cronJob.GetFinalizers(), myFinalizerName) { cronJob.SetFinalizers(append(cronJob.GetFinalizers(), myFinalizerName)) - if err := r.Update(context.Background(), &cronJob); err != nil { + if err := r.Update(context.Background(), cronJob); err != nil { return ctrl.Result{}, err } } @@ -76,7 +76,7 @@ func (r *CronJobReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) { // remove our finalizer from the list and update it. cronJob.SetFinalizers(removeString(cronJob.GetFinalizers(), myFinalizerName)) - if err := r.Update(context.Background(), &cronJob); err != nil { + if err := r.Update(context.Background(), cronJob); err != nil { return ctrl.Result{}, err } }