diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-05 12:35:03 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-05 12:35:03 +0000 |
commit | 69aef0f06a7c3e05cb11e30396598b3700c9cc98 (patch) | |
tree | e544f9119caff7c800a836a698d660d4f91a6c5d /test/lib | |
parent | e6837deea5b8133db493102b7e885440cbad529c (diff) | |
download | ruby-69aef0f06a7c3e05cb11e30396598b3700c9cc98.tar.gz |
Remove closed checks and use `&.`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/envutil.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb index 93b6b8e98b..04fdc8d30f 100644 --- a/test/lib/envutil.rb +++ b/test/lib/envutil.rb @@ -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 |