summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-10 03:10:13 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-10 03:10:13 +0000
commitd89d4e93afefa30137ed64c1efbd3750f76b6112 (patch)
tree3a23c49a23f0f908c19b90cbf2f77e035ac6da18
parent8e95d051a8ae92dee786a39ed1226259db15b253 (diff)
Use `&.` instead of modifier if
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/testunit/test_parallel.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testunit/test_parallel.rb b/test/testunit/test_parallel.rb
index 086764535f..89b5bfa50b 100644
--- a/test/testunit/test_parallel.rb
+++ b/test/testunit/test_parallel.rb
@@ -151,7 +151,7 @@ module TestParallel
rescue Timeout::Error
Process.kill(:KILL, @test_pid) if @test_pid
ensure
- @test_out.close if @test_out
+ @test_out&.close
end
end