Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "If readSize == 0, don't bother constructing an empty ByteList."

This reverts commit 279a09e.
  • Loading branch information...
commit 76dd52883ac3cf63863d32eaca0db48277f8e291 1 parent 3f23b9e
@calavera calavera authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/org/jruby/util/io/ChannelStream.java
View
4 src/org/jruby/util/io/ChannelStream.java
@@ -881,10 +881,6 @@ private ByteList bufferedRead(int number) throws IOException, BadDescriptorExcep
resultSize = Math.min(bufferedInputBytesRemaining(), number);
}
- if (resultSize == 0) {
- return null;
- }
-
ByteList result = new ByteList(resultSize);
bufferedRead(result, number);
return result;
Please sign in to comment.
Something went wrong with that request. Please try again.