diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-09 01:55:31 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-09 01:55:31 +0000 |
commit | 53ecd7f3f7814ba5ac956b0f98e4d7059785343a (patch) | |
tree | 0197af7b5a661ae989592b1bfe68937797d5136e | |
parent | 51cfea31e559ce281f7252a2dd0117f61a44912e (diff) |
Use `&.` instead of modifier if
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rwxr-xr-x | tool/extlibs.rb | 2 |
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 |