diff options
| author | Jack Nagel | 2013-10-12 20:19:21 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-10-12 20:19:21 -0500 |
| commit | bf93748c6a75e63c0a4fa9242ad7c625be4607c6 (patch) | |
| tree | 3a95b83e0f1b5b02f8669cbc384dab9ea2e004ac /Library | |
| parent | fd59925567c90ddf0e139f045759e638f3efa488 (diff) | |
| download | brew-bf93748c6a75e63c0a4fa9242ad7c625be4607c6.tar.bz2 | |
CurlDownloadStrategy: no need to to_s, name should never be nil
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 cb99c205a..acbb23e54 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -72,7 +72,7 @@ class CurlDownloadStrategy < AbstractDownloadStrategy end def tarball_path - @tarball_path ||= if name.to_s.empty? || name == '__UNKNOWN__' + @tarball_path ||= if name.empty? || name == '__UNKNOWN__' Pathname.new("#{HOMEBREW_CACHE}/#{basename_without_params}") else Pathname.new("#{HOMEBREW_CACHE}/#{name}-#{resource.version}#{ext}") |
