fix: formatting

This commit is contained in:
Carlos Damázio 2022-03-17 21:27:14 -03:00
parent fd6a05396b
commit fd00b042bf
No known key found for this signature in database
GPG Key ID: C2C35A75F3941F1A

View File

@ -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
}