diff --git a/src/main/java/com/cloudbees/syslog/sender/TcpSyslogMessageSender.java b/src/main/java/com/cloudbees/syslog/sender/TcpSyslogMessageSender.java index b1d8c98..30859c6 100644 --- a/src/main/java/com/cloudbees/syslog/sender/TcpSyslogMessageSender.java +++ b/src/main/java/com/cloudbees/syslog/sender/TcpSyslogMessageSender.java @@ -146,11 +146,11 @@ private synchronized void ensureSyslogServerConnection() throws IOException { writer = null; try { if (ssl) { - if(sslContext == null) { - socket = SSLSocketFactory.getDefault().createSocket(); - } else { - socket = sslContext.getSocketFactory().createSocket(); - } + if (sslContext == null) { + socket = SSLSocketFactory.getDefault().createSocket(); + } else { + socket = sslContext.getSocketFactory().createSocket(); + } } else { socket = SocketFactory.getDefault().createSocket(); }