diff options
| author | Kevin Abel | 2018-01-09 20:11:52 -0600 |
|---|---|---|
| committer | Kevin Abel | 2018-01-09 20:11:52 -0600 |
| commit | dca8dc5bf50c508eadf051d4316cec12dacf7674 (patch) | |
| tree | e8805ec25a8d0e429a7cd2a0cdbfebc3c38e4933 /Library | |
| parent | 06f2b50ee4b1b5db6737c4dc670536ca97cc7bb4 (diff) | |
| download | brew-dca8dc5bf50c508eadf051d4316cec12dacf7674.tar.bz2 | |
Fix audit
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
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 |
