summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-09 01:55:31 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-09 01:55:31 +0000
commit53ecd7f3f7814ba5ac956b0f98e4d7059785343a (patch)
tree0197af7b5a661ae989592b1bfe68937797d5136e /tool
parent51cfea31e559ce281f7252a2dd0117f61a44912e (diff)
Use `&.` instead of modifier if
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/extlibs.rb2
1 files changed, 1 insertions, 1 deletions
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