From b1272e93eb46214755e79afcba1a029984699ebc Mon Sep 17 00:00:00 2001 From: kazu Date: Mon, 5 Dec 2016 12:35:03 +0000 Subject: [PATCH] Remove closed checks and use `&.` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/lib/envutil.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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