Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions truffle/src/main/ruby/core/io.rb
Original file line number Diff line number Diff line change
@@ -2104,8 +2104,7 @@ def read_all
#
# If the read buffer is not empty, read_nonblock reads from the
# buffer like readpartial. In this case, read(2) is not called.
def read_nonblock(size, buffer = undefined, exception: true)
buffer = nil if undefined.equal?(buffer)
def read_nonblock(size, buffer = nil, exception: true)

raise ArgumentError, "illegal read size" if size < 0
ensure_open

0 comments on commit affe1ce

Please sign in to comment.