Skip to content

Commit

Permalink
replace empty block with negated condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rsafonseca committed Sep 10, 2024
1 parent 9056d77 commit 9e7ce60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controllers/controlplane/kopscontrolplane_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -874,9 +874,7 @@ func (r *KopsControlPlaneReconciler) Reconcile(ctx context.Context, req ctrl.Req
}

// Only Apply resources if DryRun isn't set from command line
if r.DryRun {

} else {
if !r.DryRun {
err = reconciler.createOrUpdateKopsCluster(ctx, kopsClientset, fullCluster, kopsControlPlane.Spec.SSHPublicKey, cloud)
if err != nil {
reconciler.Recorder.Eventf(kopsControlPlane, corev1.EventTypeWarning, "FailedToManageKopsState", "failed to manage Kops state: %s", err)
Expand Down

0 comments on commit 9e7ce60

Please sign in to comment.