summaryrefslogtreecommitdiff
path: root/tool/extlibs.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-09 16:05:38 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-09 16:05:38 +0000
commitd4ff568d00d80257cd66ce33d254d1575174fd8d (patch)
tree6f381476d9164d45ed4a008a98d017337ddb11f4 /tool/extlibs.rb
parent53ecd7f3f7814ba5ac956b0f98e4d7059785343a (diff)
downloadruby-d4ff568d00d80257cd66ce33d254d1575174fd8d.tar.gz
Revert "Use `&.` instead of modifier if"
This reverts commit 9d015aa91cc3ec45e41be58fd836fb7f6655a624. Because tool/extlibs.rb runs with BASERUBY that may be ruby < 2.3 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/extlibs.rb')
-rwxr-xr-xtool/extlibs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/extlibs.rb b/tool/extlibs.rb
index 94917a95a0..a840724794 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
+ f.close if f
Process.wait(pid)
$?.success? or raise "failed to extract #{cache}"
end