CurlDownloadStrategy: no need to to_s, name should never be nil
This commit is contained in:
		
							parent
							
								
									fd59925567
								
							
						
					
					
						commit
						bf93748c6a
					
				@ -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}")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user