Skip to content

Commit 6fb54f9

Browse files
committed
fix if condition.
1 parent 5617650 commit 6fb54f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gax-java/gax/src/main/java/com/google/api/gax/rpc/EndpointContext.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,9 @@ boolean shouldUseS2A() {
328328

329329
// If a custom endpoint is being used, skip S2A.
330330
if (!Strings.isNullOrEmpty(clientSettingsEndpoint())
331-
|| (transportChannelProviderEndpoint()
332-
== buildEndpointTemplate(serviceName(), resolvedUniverseDomain()))) {
331+
|| ((!Strings.isNullOrEmpty(transportChannelProviderEndpoint()))
332+
&& !(transportChannelProviderEndpoint()
333+
== buildEndpointTemplate(serviceName(), resolvedUniverseDomain())))) {
333334
return false;
334335
}
335336

0 commit comments

Comments
 (0)