Skip to content

Commit f05cb2b

Browse files
committed
Remove redundant check
* @sync was checked before this branch.
1 parent a16ed42 commit f05cb2b

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2465,7 +2465,7 @@ def write(data)
24652465

24662466
while bytes_to_write > 0
24672467
bytes_to_write -= @ibuffer.unshift(data, data.bytesize - bytes_to_write)
2468-
@ibuffer.empty_to self if @ibuffer.full? or sync
2468+
@ibuffer.empty_to self if @ibuffer.full?
24692469
end
24702470
end
24712471

0 commit comments

Comments
 (0)