Skip to content

Commit c0eb48f

Browse files
committed
Remove unnecessary else.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1668816 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1aa53ce commit c0eb48f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/main/java/org/apache/commons/io/input/ReaderInputStream.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,10 @@ public int read() throws IOException {
277277
for (;;) {
278278
if (encoderOut.hasRemaining()) {
279279
return encoderOut.get() & 0xFF;
280-
} else {
281-
fillBuffer();
282-
if (endOfInput && !encoderOut.hasRemaining()) {
283-
return EOF;
284-
}
280+
}
281+
fillBuffer();
282+
if (endOfInput && !encoderOut.hasRemaining()) {
283+
return EOF;
285284
}
286285
}
287286
}

0 commit comments

Comments
 (0)