ruby-changes:51414
From: kazu <ko1@a...>
Date: Sun, 10 Jun 2018 12:10:17 +0900 (JST)
Subject: [ruby-changes:51414] kazu:r63620 (trunk): Use `&.` instead of modifier if
kazu 2018-06-10 12:10:13 +0900 (Sun, 10 Jun 2018) New Revision: 63620 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63620 Log: Use `&.` instead of modifier if Modified files: trunk/test/testunit/test_parallel.rb Index: test/testunit/test_parallel.rb =================================================================== --- test/testunit/test_parallel.rb (revision 63619) +++ test/testunit/test_parallel.rb (revision 63620) @@ -151,7 +151,7 @@ module TestParallel https://github.com/ruby/ruby/blob/trunk/test/testunit/test_parallel.rb#L151 rescue Timeout::Error Process.kill(:KILL, @test_pid) if @test_pid ensure - @test_out.close if @test_out + @test_out&.close end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/