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
The following commit(s) were added to refs/heads/master by this push: new f303f25d3 No need to nest f303f25d3 is described below commit f303f25d36e417ca59b1feabf163734d7c749f65 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Nov 14 16:41:55 2023 -0500 No need to nest --- .../org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java b/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java index aba0f155a..63e44e977 100644 --- a/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java +++ b/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java @@ -244,9 +244,8 @@ public class ArArchiveInputStream extends ArchiveInputStream<ArArchiveEntry> { // Check there is a something to return, otherwise break out of the loop if (i - offset > 0) { return ArchiveUtils.toAsciiString(namebuffer, offset, i - offset); - } else { - break; } + break; } } throw new IOException("Failed to read entry: " + offset);