Skip to content

Commit db86c5f

Browse files
committed
Minor style and compatibility fixes.
1 parent a7ba27d commit db86c5f

File tree

1 file changed

+2
-1
lines changed
  • src/main/ruby/truffleruby/core

1 file changed

+2
-1
lines changed

src/main/ruby/truffleruby/core/io.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,6 +1661,7 @@ def nonblock=(value)
16611661
old_flags & ~NONBLOCK
16621662
end
16631663
fcntl(F_SETFL, new_flags) if old_flags != new_flags
1664+
self
16641665
end
16651666

16661667
##
@@ -1837,7 +1838,7 @@ def read_nonblock(size, buffer = nil, exception: true)
18371838

18381839
case str
18391840
when Symbol
1840-
return str
1841+
str
18411842
when String
18421843
buffer ? buffer.replace(str) : str
18431844
else

0 commit comments

Comments
 (0)