Skip to content

Commit

Permalink
return nil/err explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
enxebre committed Oct 18, 2018
1 parent 0418bf9 commit 84cffd9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/controller/machine/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ func (r *ReconcileMachine) Reconcile(request reconcile.Request) (reconcile.Resul
glog.Infof("Actuator returned requeue-after error: %v", requeueErr)
return reconcile.Result{Requeue: true, RequeueAfter: requeueErr.RequeueAfter}, nil
}
return reconcile.Result{}, err
}
return reconcile.Result{}, err
return reconcile.Result{}, nil
}
// Machine resource created. Machine does not yet exist.
glog.Infof("Reconciling machine object %v triggers idempotent create.", m.ObjectMeta.Name)
Expand All @@ -178,8 +179,9 @@ func (r *ReconcileMachine) Reconcile(request reconcile.Request) (reconcile.Resul
glog.Infof("Actuator returned requeue-after error: %v", requeueErr)
return reconcile.Result{Requeue: true, RequeueAfter: requeueErr.RequeueAfter}, nil
}
return reconcile.Result{}, err
}
return reconcile.Result{}, err
return reconcile.Result{}, nil
}

func (c *ReconcileMachine) create(machine *clusterv1.Machine) error {
Expand Down

0 comments on commit 84cffd9

Please sign in to comment.