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 | 202a8c98ae689bf17f2ef68cff29624764278b88 (patch) | |
tree | 0197af7b5a661ae989592b1bfe68937797d5136e /tool/extlibs.rb | |
parent | 3c0be986db903f417b3339454093792ddf7ffd8f (diff) | |
download | ruby-202a8c98ae689bf17f2ef68cff29624764278b88.tar.gz |
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/extlibs.rb')
-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 |