diff options
| author | Jack Nagel | 2013-10-12 20:19:21 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-10-12 20:19:21 -0500 |
| commit | b31ff11227ca64cea85badde71b4b70056780189 (patch) | |
| tree | 16450390737565de44124435d4a5bf54ad38714d /Library | |
| parent | 686af5aa8e16b60dfef8d17a7c31d49cf0d76598 (diff) | |
| download | homebrew-b31ff11227ca64cea85badde71b4b70056780189.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}") |
