mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
Remove closed checks and use &.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
956aa0102e
commit
b1272e93eb
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ module EnvUtil
|
|||
th.kill if th
|
||||
end
|
||||
[in_c, in_p, out_c, out_p, err_c, err_p].each do |io|
|
||||
io.close if io && !io.closed?
|
||||
io&.close
|
||||
end
|
||||
[th_stdout, th_stderr].each do |th|
|
||||
th.join if th
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue