From d4ff568d00d80257cd66ce33d254d1575174fd8d Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 9 Jun 2018 16:05:38 +0000 Subject: 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 --- tool/extlibs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/extlibs.rb') 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 -- cgit v1.2.3