Skip to content

Commit 628fe31

Browse files
committed
format
1 parent 58e1af5 commit 628fe31

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,17 +309,16 @@ private String determineEndpoint() throws IOException {
309309
/** Determine if S2A can be used */
310310
@VisibleForTesting
311311
boolean shouldUseS2A() {
312-
// If running on windows or macos intel, skip S2A. S2A has runtime
312+
// If running on windows or macos intel, skip S2A. S2A has runtime
313313
// dependency on netty-tcnative which is dropping support on these platforms.
314314
// https://github.com/netty/netty-tcnative/issues/898
315315
// https://github.com/netty/netty-tcnative/issues/897
316-
if (System.getProperty("os.name").contains("Windows") ||
317-
(System.getProperty("os.name").contains("OS X")
318-
&& System.getProperty("os.arch").contains("x86_64"))) {
319-
return false;
316+
if (System.getProperty("os.name").contains("Windows")
317+
|| (System.getProperty("os.name").contains("OS X")
318+
&& System.getProperty("os.arch").contains("x86_64"))) {
319+
return false;
320320
}
321321

322-
323322
// If mTLS endpoint is not available, skip S2A
324323
if (Strings.isNullOrEmpty(mtlsEndpoint())) {
325324
return false;

0 commit comments

Comments
 (0)