From b31ff11227ca64cea85badde71b4b70056780189 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 12 Oct 2013 20:19:21 -0500 Subject: CurlDownloadStrategy: no need to to_s, name should never be nil --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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}") -- cgit v1.2.3