mirror of https://github.com/grpc/grpc-java.git
xds: simplify condition (#6463)
This commit is contained in:
parent
7db873f1f6
commit
09d5093295
|
|
@ -554,7 +554,7 @@ final class XdsClientImpl extends XdsClient {
|
||||||
// Inside of it: the address field must be set.
|
// Inside of it: the address field must be set.
|
||||||
for (io.envoyproxy.envoy.api.v2.endpoint.LbEndpoint lbEndpoint
|
for (io.envoyproxy.envoy.api.v2.endpoint.LbEndpoint lbEndpoint
|
||||||
: localityLbEndpoints.getLbEndpointsList()) {
|
: localityLbEndpoints.getLbEndpointsList()) {
|
||||||
if (!lbEndpoint.hasEndpoint() || !lbEndpoint.getEndpoint().hasAddress()) {
|
if (!lbEndpoint.getEndpoint().hasAddress()) {
|
||||||
errorMessage = "Invalid endpoint address information.";
|
errorMessage = "Invalid endpoint address information.";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue