ruby-changes:44914
From: kazu <ko1@a...>
Date: Mon, 5 Dec 2016 21:35:08 +0900 (JST)
Subject: [ruby-changes:44914] kazu:r56987 (trunk): Remove closed checks and use `&.`
kazu 2016-12-05 21:35:03 +0900 (Mon, 05 Dec 2016) New Revision: 56987 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56987 Log: Remove closed checks and use `&.` Modified files: trunk/test/lib/envutil.rb Index: test/lib/envutil.rb =================================================================== --- test/lib/envutil.rb (revision 56986) +++ test/lib/envutil.rb (revision 56987) @@ -127,7 +127,7 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L127 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/