Skip to content

Commit

Permalink
Fix warnings about not checking return value.
Browse files Browse the repository at this point in the history
  • Loading branch information
draghuram authored and JerusJ committed Jan 23, 2020
1 parent 4819102 commit c4accf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kubedr/config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: kubedr
newTag: latest
newTag: "0.53"
5 changes: 1 addition & 4 deletions kubedr/controllers/backuplocation_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func ignoreErrors(err error) error {
return err
}

func (r *BackupLocationReconciler) setStatus(backupLoc *kubedrv1alpha1.BackupLocation, status string, errmsg string) error {
func (r *BackupLocationReconciler) setStatus(backupLoc *kubedrv1alpha1.BackupLocation, status string, errmsg string) {
backupLoc.Status.InitStatus = status
if errmsg == "" {
// For some reason, empty error string is causing problems even though
Expand All @@ -86,10 +86,7 @@ func (r *BackupLocationReconciler) setStatus(backupLoc *kubedrv1alpha1.BackupLoc
r.Log.Info("Updating status...")
if err := r.Status().Update(context.Background(), backupLoc); err != nil {
r.Log.Error(err, "unable to update backup location status")
return err
}

return nil
}

func (r *BackupLocationReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
Expand Down

0 comments on commit c4accf4

Please sign in to comment.