Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit ba20443

Browse files
committed
fix: move from switch to if
Signed-off-by: Chris Privitere <[email protected]>
1 parent f3ee310 commit ba20443

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

controllers/packetcluster_controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ func (r *PacketClusterReconciler) reconcileDelete(ctx context.Context, clusterSc
192192

193193
packetCluster := clusterScope.PacketCluster
194194

195-
switch {
196-
case packetCluster.Spec.VIPManager == emlb.EMLBVIPID:
195+
if packetCluster.Spec.VIPManager == emlb.EMLBVIPID {
197196
// Create new EMLB object
198197
lb := emlb.NewEMLB(r.PacketClient.GetConfig().DefaultHeader["X-Auth-Token"], packetCluster.Spec.ProjectID, packetCluster.Spec.Metro)
199198

0 commit comments

Comments
 (0)