Skip to content

Commit

Permalink
remove unecessary check.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta19 committed Nov 6, 2024
1 parent c3b93a0 commit 18a4cf2
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,6 @@ ChannelCredentials createS2ASecuredChannelCredentials() {
+ ignore.getMessage());
return createPlaintextToS2AChannelCredentials(plaintextAddress);
}
if (mtlsToS2AChannelCredentials == null) {
// Fallback to plaintext-to-S2A connection.
return createPlaintextToS2AChannelCredentials(plaintextAddress);
}
return S2AChannelCredentials.newBuilder(mtlsAddress, mtlsToS2AChannelCredentials).build();
}

Expand Down

0 comments on commit 18a4cf2

Please sign in to comment.