aboutsummaryrefslogtreecommitdiffstats
path: root/tool/extlibs.rb
diff options
context:
space:
mode:
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 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