Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
voddle committed Oct 7, 2023
1 parent 7dccb50 commit 8dcf85e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,8 @@ public Closeable getIOStream(String name) throws IOException {
public Long doIO(Reporter reporter, String name, long totalSize) throws IOException {
PositionedReadable in = (PositionedReadable) this.mStream;
long actualSize = 0;
for (long pos = nextOffset(-1); actualSize < totalSize && pos < totalSize; pos = nextOffset(pos)) {
for (long pos = nextOffset(-1); actualSize < totalSize
&& pos < totalSize; pos = nextOffset(pos)) {
int curSize = in.read(pos, mBuffer, 0, mBufferSize);
if (curSize < 0) {
break;
Expand Down

0 comments on commit 8dcf85e

Please sign in to comment.