incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r575654 - /incubator/sling/trunk/sling-app/src/main/java/org/apache/sling/launcher/Sling.java
Date Fri, 14 Sep 2007 12:27:07 GMT
Author: cziegeler
Date: Fri Sep 14 05:27:06 2007
New Revision: 575654

URL: http://svn.apache.org/viewvc?rev=575654&view=rev
Log:
Remove redundant null check.

Modified:
    incubator/sling/trunk/sling-app/src/main/java/org/apache/sling/launcher/Sling.java

Modified: incubator/sling/trunk/sling-app/src/main/java/org/apache/sling/launcher/Sling.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling-app/src/main/java/org/apache/sling/launcher/Sling.java?rev=575654&r1=575653&r2=575654&view=diff
==============================================================================
--- incubator/sling/trunk/sling-app/src/main/java/org/apache/sling/launcher/Sling.java (original)
+++ incubator/sling/trunk/sling-app/src/main/java/org/apache/sling/launcher/Sling.java Fri
Sep 14 05:27:06 2007
@@ -359,11 +359,9 @@
             // no system property, ensure default setting
             slingHome = props.get(SLING_HOME);
             if (slingHome == null || slingHome.length() == 0) {
-                if (slingHome == null || slingHome.length() == 0) {
-                    slingHome = "sling";
-                    this.logger.log("sling.home is not defined. Using '" + slingHome
-                        + "'");
-                }
+                slingHome = "sling";
+                this.logger.log("sling.home is not defined. Using '" + slingHome
+                    + "'");
             }
         }
 



Mime
View raw message