Skip to content

Commit

Permalink
separate into single condition if statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta19 committed Nov 4, 2024
1 parent 90892ef commit 33b710c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,13 @@ boolean shouldUseS2A() {
return false;
}

// If {@code mtlsEndpoint} is not set, or {@code endpointOverride} is specified, skip S2A.
if (mtlsEndpoint.isEmpty() || !endpointOverride.isEmpty()) {
// If {@code mtlsEndpoint} is not set, skip S2A.
if (mtlsEndpoint.isEmpty()) {
return false;
}

// If {@code endpointOverride} is specified, skip S2A.
if (!endpointOverride.isEmpty()) {
return false;
}

Expand Down

0 comments on commit 33b710c

Please sign in to comment.