Skip to content

Commit

Permalink
Small simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
marianobarrios committed Jun 20, 2020
1 parent 9aae055 commit be3f1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tlschannel/ServerTlsChannel.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ private Optional<SNIServerName> getServerNameIndication() throws IOException, Eo
Map<Integer, SNIServerName> serverNames = TlsExplorer.explore(inEncrypted.buffer);
inEncrypted.buffer.compact();
SNIServerName hostName = serverNames.get(StandardConstants.SNI_HOST_NAME);
if (hostName != null && hostName instanceof SNIHostName) {
if (hostName instanceof SNIHostName) {
SNIHostName sniHostName = (SNIHostName) hostName;
return Optional.of(sniHostName);
} else {
Expand Down

0 comments on commit be3f1fc

Please sign in to comment.