commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-crypto git commit: Statement unnecessarily nested within else clause.
Date Tue, 21 Jun 2016 23:21:04 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master be447dbbb -> a61d69675


Statement unnecessarily nested within else clause.

Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/a61d6967
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/a61d6967
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/a61d6967

Branch: refs/heads/master
Commit: a61d69675a6fa0db15405deb3a721e97e5beff83
Parents: be447db
Author: ggregory <ggregory@apache.org>
Authored: Tue Jun 21 16:21:02 2016 -0700
Committer: ggregory <ggregory@apache.org>
Committed: Tue Jun 21 16:21:02 2016 -0700

----------------------------------------------------------------------
 src/main/java/org/apache/commons/crypto/utils/Utils.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/a61d6967/src/main/java/org/apache/commons/crypto/utils/Utils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/utils/Utils.java b/src/main/java/org/apache/commons/crypto/utils/Utils.java
index 3fa3a18..38ea8e8 100644
--- a/src/main/java/org/apache/commons/crypto/utils/Utils.java
+++ b/src/main/java/org/apache/commons/crypto/utils/Utils.java
@@ -389,8 +389,7 @@ public final class Utils {
         if (enableFallback == null || enableFallback.isEmpty()) {
             return ConfigurationKeys
                     .COMMONS_CRYPTO_ENABLE_FALLBACK_ON_NATIVE_FAILED_DEFAULT;
-        } else {
-            return Boolean.valueOf(enableFallback);
         }
+        return Boolean.valueOf(enableFallback);
     }
 }


Mime
View raw message