Skip to content

Commit

Permalink
remove redundant comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
sircthulhu committed Mar 15, 2024
1 parent 1ee84f3 commit ec31897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/etcdcluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (r *EtcdClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request)
return reconcile.Result{}, err
}
// If object is being deleted, skipping reconciliation
if instance.DeletionTimestamp != nil && !instance.DeletionTimestamp.IsZero() {
if !instance.DeletionTimestamp.IsZero() {
return reconcile.Result{}, nil
}

Expand Down

0 comments on commit ec31897

Please sign in to comment.