directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [directory-kerby] branch trunk updated: Removing unnecessary null check
Date Fri, 03 Jan 2020 12:05:21 GMT
This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/directory-kerby.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 629757f  Removing unnecessary null check
629757f is described below

commit 629757f8a690cd7fc1bff315f2debecf87227192
Author: Colm O hEigeartaigh <coheigea@apache.org>
AuthorDate: Fri Jan 3 12:05:03 2020 +0000

    Removing unnecessary null check
---
 .../src/main/java/org/apache/kerby/has/server/web/WebServer.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/has-project/has-server/src/main/java/org/apache/kerby/has/server/web/WebServer.java
b/has-project/has-server/src/main/java/org/apache/kerby/has/server/web/WebServer.java
index bf9c92e..174bf2f 100644
--- a/has-project/has-server/src/main/java/org/apache/kerby/has/server/web/WebServer.java
+++ b/has-project/has-server/src/main/java/org/apache/kerby/has/server/web/WebServer.java
@@ -268,7 +268,7 @@ public class WebServer {
             HasConfig sslConf = loadSslConfiguration(conf);
             loadSslConfToHttpServerBuilder(builder, sslConf);
 
-            if (httpsAddr != null && httpsAddr.getPort() == 0) {
+            if (httpsAddr.getPort() == 0) {
                 builder.setFindPort(true);
             }
 


Mime
View raw message