You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/02/27 22:47:16 UTC

(commons-compress) 01/02: Inline singel-use local variable

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 ee05c84c971c6133aa88f5993e78dfb6f8d768e2
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Feb 27 17:38:44 2024 -0500

    Inline singel-use local variable
---
 .../apache/commons/compress/archivers/tar/TarArchiveInputStream.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
index 10eb6a166..e3991c57f 100644
--- a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
@@ -318,8 +318,7 @@ public class TarArchiveInputStream extends ArchiveInputStream<TarArchiveEntry> {
     private void consumeRemainderOfLastBlock() throws IOException {
         final long bytesReadOfLastBlock = getBytesRead() % blockSize;
         if (bytesReadOfLastBlock > 0) {
-            final long skipped = org.apache.commons.io.IOUtils.skip(in, blockSize - bytesReadOfLastBlock);
-            count(skipped);
+            count(org.apache.commons.io.IOUtils.skip(in, blockSize - bytesReadOfLastBlock));
         }
     }