mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
53ecd7f3f7
commit
d4ff568d00
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class ExtLibs
|
||||||
when '.zip'
|
when '.zip'
|
||||||
pid = Process.spawn("unzip", inp, "-d", dir)
|
pid = Process.spawn("unzip", inp, "-d", dir)
|
||||||
end
|
end
|
||||||
f&.close
|
f.close if f
|
||||||
Process.wait(pid)
|
Process.wait(pid)
|
||||||
$?.success? or raise "failed to extract #{cache}"
|
$?.success? or raise "failed to extract #{cache}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue