mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
remove unnecessary condition judgement
This commit is contained in:
parent
c933067cd3
commit
f0d894543b
@ -1287,7 +1287,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancerDeleted(clusterName string, service *v1.
|
||||
return nil
|
||||
}
|
||||
|
||||
if loadbalancer != nil && loadbalancer.VipPortID != "" {
|
||||
if loadbalancer.VipPortID != "" {
|
||||
portID := loadbalancer.VipPortID
|
||||
floatingIP, err := getFloatingIPByPortID(lbaas.network, portID)
|
||||
if err != nil && err != ErrNotFound {
|
||||
|
Loading…
Reference in New Issue
Block a user