Skip to content

Commit 61079e1

Browse files
committed
Simplify
1 parent b3040f7 commit 61079e1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/org/apache/commons/imaging/bytesource/InputStreamByteSource.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,8 @@ public long size() throws IOException {
242242
if (streamLength >= 0) {
243243
return streamLength;
244244
}
245-
246245
try (InputStream cis = getInputStream()) {
247-
final long result = IOUtils.consume(cis);
248-
streamLength = result;
249-
return result;
246+
return streamLength = IOUtils.consume(cis);
250247
}
251248
}
252249

0 commit comments

Comments
 (0)