Skip to content

Commit bc0bd86

Browse files
author
Katerina Stoycheva
committed
Rescope the read variable to be local to the inner while loop.
1 parent 145c0e8 commit bc0bd86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/microsoft/graph/concurrency/ChunkedUploadProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ public void upload(final List<Option> options,
168168
byte[] buffer = new byte[chunkSize];
169169

170170
while (this.readSoFar < this.streamSize) {
171-
int read = 0;
172171
int buffRead = 0;
173172

174173
while (buffRead < chunkSize) {
174+
int read = 0;
175175
read = this.inputStream.read(buffer, buffRead, chunkSize - buffRead);
176176
if (read == -1) {
177177
break;

0 commit comments

Comments
 (0)