ruby-changes:51099
From: kazu <ko1@a...>
Date: Mon, 30 Apr 2018 19:01:13 +0900 (JST)
Subject: [ruby-changes:51099] kazu:r63306 (trunk): Use `&.` instead of modifier if
kazu 2018-04-30 19:01:08 +0900 (Mon, 30 Apr 2018) New Revision: 63306 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63306 Log: Use `&.` instead of modifier if Modified files: trunk/lib/open3.rb Index: lib/open3.rb =================================================================== --- lib/open3.rb (revision 63305) +++ lib/open3.rb (revision 63306) @@ -657,8 +657,8 @@ module Open3 https://github.com/ruby/ruby/blob/trunk/lib/open3.rb#L657 end pid = spawn(*cmd, cmd_opts) wait_thrs << Process.detach(pid) - r.close if r - w2.close if w2 + r&.close + w2&.close r = r2 } result = parent_io + [wait_thrs] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/