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

Commit 53f1647

Browse files
Apply suggestions from code review
Co-authored-by: Marques Johansson <[email protected]>
1 parent 0817226 commit 53f1647

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/emlb/emlb.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,9 @@ func (e *EMLB) DeleteLoadBalancer(ctx context.Context, clusterScope *scope.Clust
255255
return nil
256256
}
257257
log.Error(err, "LB Delete Failed", "EMLB ID", lbID, "Response Body", resp.Body)
258-
return err
259258
}
260259

261-
return nil
260+
return err
262261
}
263262

264263
// DeleteLoadBalancerOrigin deletes the Equinix Metal Load Balancer associated with a given ClusterScope.
@@ -282,10 +281,9 @@ func (e *EMLB) DeleteLoadBalancerOrigin(ctx context.Context, machineScope *scope
282281
return nil
283282
}
284283
log.Error(err, "LB Pool Delete Failed", "Pool ID", lbPoolID, "Response Body", resp.Body)
285-
return err
286284
}
287285

288-
return nil
286+
return err
289287
}
290288

291289
// getLoadBalancer Returns a Load Balancer object given an id.

0 commit comments

Comments
 (0)