Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit 8b4aa25

Browse files
committed
remove unnecessary condition judgement
1 parent 5d9034c commit 8b4aa25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancerDeleted(clusterName string, service *v1.
12871287
return nil
12881288
}
12891289

1290-
if loadbalancer != nil && loadbalancer.VipPortID != "" {
1290+
if loadbalancer.VipPortID != "" {
12911291
portID := loadbalancer.VipPortID
12921292
floatingIP, err := getFloatingIPByPortID(lbaas.network, portID)
12931293
if err != nil && err != ErrNotFound {

0 commit comments

Comments
 (0)