This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit cd5475b9c3cd65b89bd6d9f7bb35e34b05a92c96
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Nov 26 10:11:22 2024 -0500

    Reduce nesting
---
 .../org/apache/commons/compress/archivers/zip/ZipEightByteInteger.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/compress/archivers/zip/ZipEightByteInteger.java
 
b/src/main/java/org/apache/commons/compress/archivers/zip/ZipEightByteInteger.java
index 08365da50..567ef49d2 100644
--- 
a/src/main/java/org/apache/commons/compress/archivers/zip/ZipEightByteInteger.java
+++ 
b/src/main/java/org/apache/commons/compress/archivers/zip/ZipEightByteInteger.java
@@ -109,9 +109,8 @@ public final class ZipEightByteInteger implements 
Serializable {
     static BigInteger toUnsignedBigInteger(final long value) {
         if (value >= 0L) {
             return BigInteger.valueOf(value);
-        } else {
-            return BigInteger.valueOf(value & Long.MAX_VALUE).add(HIGHEST_BIT);
         }
+        return BigInteger.valueOf(value & Long.MAX_VALUE).add(HIGHEST_BIT);
     }
 
     private final long value;

Reply via email to