arturobernalg commented on a change in pull request #119:
URL: https://github.com/apache/maven-resolver/pull/119#discussion_r702374437



##########
File path: 
maven-resolver-connector-basic/src/main/java/org/eclipse/aether/connector/basic/ChecksumCalculator.java
##########
@@ -153,12 +153,8 @@ public void init( long dataOffset )
                 int read = in.read( array );
                 if ( read < 0 )
                 {
-                    if ( total < dataOffset )
-                    {
-                        throw new IOException( targetFile + " contains only " 
+ total
-                                                   + " bytes, cannot resume 
download from offset " + dataOffset );
-                    }
-                    break;
+                    throw new IOException( targetFile + " contains only " + 
total

Review comment:
       `total < dataOffset` is always true, otherwise the conditions of the 
loop would be true and would be exit.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to