Skip to content

Commit 24df623

Browse files
committed
Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1737902 13f79535-47bb-0310-9956-ffa450edef68
1 parent 426cd8c commit 24df623

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,10 @@ public int read() throws IOException {
165165
for (;;) {
166166
if (this.bbuf.hasRemaining()) {
167167
return this.bbuf.get() & 0xFF;
168-
} else {
169-
fillBuffer();
170-
if (!this.bbuf.hasRemaining() && !this.cbuf.hasRemaining()) {
171-
return EOF;
172-
}
168+
}
169+
fillBuffer();
170+
if (!this.bbuf.hasRemaining() && !this.cbuf.hasRemaining()) {
171+
return EOF;
173172
}
174173
}
175174
}

0 commit comments

Comments
 (0)