Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mvshao committed Oct 13, 2023
1 parent f4361fb commit bec89ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion controllers/compassmanager_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ func (cm *CompassManagerReconciler) Reconcile(ctx context.Context, req ctrl.Requ
return ctrl.Result{}, errors.Wrapf(err, "failed to perform unregistration stage for Kyma %s", req.Name)
}
return ctrl.Result{}, nil

} else if err != nil {
return ctrl.Result{}, errors.Wrapf(err, "failed to obtain labels from Kyma resource %s", req.Name)
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/registrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (r *CompassRegistrator) RegisterInCompass(compassRuntimeLabels map[string]i
}

func (r *CompassRegistrator) DeregisterFromCompass(compassID, globalAccount string) error {
err := util.RetryOnError(extendedRetryTime*time.Second, 3, "Error while unregistering runtime in Director: %s", func() (err apperrors.AppError) {
err := util.RetryOnError(extendedRetryTime*time.Second, attempts, "Error while unregistering runtime in Director: %s", func() (err apperrors.AppError) {
err = r.Client.DeleteRuntime(compassID, globalAccount)
return
})
Expand Down

0 comments on commit bec89ff

Please sign in to comment.