lib/io_streams/line/reader.rb in iostreams-1.10.0 vs lib/io_streams/line/reader.rb in iostreams-1.10.1
- old
+ new
@@ -171,12 +171,9 @@
if block.nil?
@eof = true
return false
end
- # When less data is returned than was requested, it means the end of the file with partial data.
- @eof = true if block.size < @buffer_size
-
if @buffer
@buffer << block
else
# Take on the encoding from the input stream
@buffer = block.dup