From 53ecd7f3f7814ba5ac956b0f98e4d7059785343a Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 9 Jun 2018 01:55:31 +0000 Subject: Use `&.` instead of modifier if git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/extlibs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/extlibs.rb b/tool/extlibs.rb index a840724794..94917a95a0 100755 --- a/tool/extlibs.rb +++ b/tool/extlibs.rb @@ -65,7 +65,7 @@ class ExtLibs when '.zip' pid = Process.spawn("unzip", inp, "-d", dir) end - f.close if f + f&.close Process.wait(pid) $?.success? or raise "failed to extract #{cache}" end -- cgit v1.2.3