Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 9, 2024
1 parent b3040f7 commit 61079e1
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,8 @@ public long size() throws IOException {
if (streamLength >= 0) {
return streamLength;
}

try (InputStream cis = getInputStream()) {
final long result = IOUtils.consume(cis);
streamLength = result;
return result;
return streamLength = IOUtils.consume(cis);
}
}

Expand Down

0 comments on commit 61079e1

Please sign in to comment.