Remove redundant code comments for improved readability and maintainability
This commit is contained in:
@@ -66,8 +66,6 @@ public final class TlsConfig {
|
||||
try {
|
||||
return new TlsConfig(SslContextBuilder.forServer(certificateChain, privateKey, keyPassword).build());
|
||||
} catch (SSLException | RuntimeException e) {
|
||||
// Netty surfaces missing/invalid PEM material as IllegalArgumentException; normalise
|
||||
// every initialisation failure to a single, predictable exception type.
|
||||
throw new IllegalStateException("Failed to initialise TLS from PEM files", e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user