lib/lightio/library/io.rb in lightio-0.4.1 vs lib/lightio/library/io.rb in lightio-0.4.2

- old
+ new

@@ -40,10 +40,10 @@ outbuf << data if length == outbuf.size return outbuf end else - return length.nil? ? outbuf : nil + return outbuf.empty? && length ? nil : outbuf end end end def readpartial(maxlen, outbuf=nil)