Skip to content

Commit a556358

Browse files
committed
minor change
1 parent 13de014 commit a556358

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/s3/src/main/java/software/amazon/awssdk/services/s3/internal/multipart/MultipartDownloaderSubscriber.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ public void onNext(AsyncResponseTransformer<GetObjectResponse, GetObjectResponse
120120
throw new NullPointerException("onNext must not be called with null asyncResponseTransformer");
121121
}
122122

123-
int currentPart = completedParts.get();
124-
int nextPartToGet = currentPart + 1;
123+
int nextPartToGet = completedParts.get() + 1;
125124

126125
synchronized (lock) {
127126
if (totalParts != null && nextPartToGet > totalParts) {

0 commit comments

Comments
 (0)