diff options
| author | Jack Nagel | 2013-05-16 14:06:26 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-05-16 14:06:26 -0500 | 
| commit | daef74aa27b8316865a44484fefd2d7c424c7342 (patch) | |
| tree | fe85285b4c4e6c66a62fc8f004dd241e3f11c2ff /Library/Homebrew/cmd/fetch.rb | |
| parent | a6f9a1c4a3cc8a2cad998caf30522f86c2f4a3de (diff) | |
| download | brew-daef74aa27b8316865a44484fefd2d7c424c7342.tar.bz2 | |
Adjust semantics of Formula#fetch
It doesn't really make logical sense that this method returns both the
fetched path (or sometimes nil!) and the downloader, so just return the
path (again, or nil!) and callers that want the downloader can ask for
it separately.
Diffstat (limited to 'Library/Homebrew/cmd/fetch.rb')
| -rw-r--r-- | Library/Homebrew/cmd/fetch.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index cb0fd4660..24b1b0614 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -25,7 +25,7 @@ module Homebrew extend self    def fetch_formula f      f.cached_download.rmtree if already_fetched?(f) && ARGV.force? -    download, _ = f.fetch +    download = f.fetch      # FIXME why are strategies returning different types?      return unless download.is_a? Pathname | 
