fix: formatting
This commit is contained in:
parent
fd6a05396b
commit
fd00b042bf
@ -126,9 +126,9 @@ func (lb *LoadBalancerRR) ServiceHasEndpoints(svcPort proxy.ServicePortName) boo
|
||||
lb.lock.RLock()
|
||||
defer lb.lock.RUnlock()
|
||||
state, exists := lb.services[svcPort]
|
||||
if !exists || state == nil {
|
||||
return false
|
||||
}
|
||||
if !exists || state == nil {
|
||||
return false
|
||||
}
|
||||
return len(state.endpoints) > 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user