Skip to content

Commit

Permalink
Fix indentations
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedwaleedmalik committed Aug 7, 2020
1 parent 42423f2 commit d3bf465
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/project_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ func (r *ProjectReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
// Add finalizer if it doesn't exist
if !util.HasFinalizer(instance, ProjectFinalizer) {
log.Info("Adding finalizer for instance " + req.Name)

util.AddFinalizer(instance, ProjectFinalizer)

err := r.Client.Update(context.TODO(), instance)
if err != nil {
return util.ManageError(r.Client, instance, err)
Expand Down Expand Up @@ -155,6 +157,7 @@ func (r *ProjectReconciler) handleDelete(req ctrl.Request, instance *jiraservice

// Delete finalizer
util.DeleteFinalizer(instance, ProjectFinalizer)

log.Info("Finalizer removed for project : " + instance.Spec.Name)

// Update instance
Expand Down

0 comments on commit d3bf465

Please sign in to comment.