Skip to content

Commit

Permalink
refactor: readed -> read
Browse files Browse the repository at this point in the history
  • Loading branch information
filipg43 committed Dec 11, 2024
1 parent 5030a3e commit 9bec72d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ public void writeStream(long inboxHandle, InputStream inputStream, StoreFileStre
setProgressListener(streamController);
}
byte[] chunk = new byte[(int) InboxFileStream.OPTIMAL_SEND_SIZE];
int readed;
int read;
while (true) {
if (streamController != null && streamController.isStopped()) {
return;
}
if ((readed = inputStream.read(chunk)) <= 0) {
if ((read = inputStream.read(chunk)) <= 0) {
return;
}
write(inboxHandle, Arrays.copyOf(chunk, readed));
write(inboxHandle, Arrays.copyOf(chunk, read));
}
}
}

0 comments on commit 9bec72d

Please sign in to comment.