Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Marques Johansson <mjohansson@equinix.com>
  • Loading branch information
cprivitere and displague committed Jun 17, 2024
1 parent 0817226 commit 53f1647
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/emlb/emlb.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,9 @@ func (e *EMLB) DeleteLoadBalancer(ctx context.Context, clusterScope *scope.Clust
return nil
}
log.Error(err, "LB Delete Failed", "EMLB ID", lbID, "Response Body", resp.Body)
return err
}

return nil
return err
}

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

return nil
return err
}

// getLoadBalancer Returns a Load Balancer object given an id.
Expand Down

0 comments on commit 53f1647

Please sign in to comment.