aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorKevin Abel2018-01-09 20:11:52 -0600
committerKevin Abel2018-01-09 20:11:52 -0600
commitdca8dc5bf50c508eadf051d4316cec12dacf7674 (patch)
treee8805ec25a8d0e429a7cd2a0cdbfebc3c38e4933 /Library
parent06f2b50ee4b1b5db6737c4dc670536ca97cc7bb4 (diff)
downloadbrew-dca8dc5bf50c508eadf051d4316cec12dacf7674.tar.bz2
Fix audit
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 6869d3370..341947544 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -304,7 +304,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy
# https://example.com/download.php?file=foo-1.0.tar.gz
# the extension we want is ".tar.gz", not ".php".
url_pathname = Pathname.new(@url)
- while !ext = url_pathname.extname[/[^?]+/]
+ until ext = url_pathname.extname[/[^?]+/]
url_pathname = url_pathname.dirname
end
ext