Fix audit when tap is nil

This is the case when a formula is passed as a filename.
This commit is contained in:
Jack Nagel 2015-06-23 19:58:05 -04:00
parent a639601f14
commit 22269b7007

View File

@ -420,11 +420,11 @@ class FormulaAuditor
end
def audit_specs
if head_only?(formula) && formula.tap.downcase != "homebrew/homebrew-head-only"
if head_only?(formula) && formula.tap.to_s.downcase != "homebrew/homebrew-head-only"
problem "Head-only (no stable download)"
end
if devel_only?(formula) && formula.tap.downcase != "homebrew/homebrew-devel-only"
if devel_only?(formula) && formula.tap.to_s.downcase != "homebrew/homebrew-devel-only"
problem "Devel-only (no stable download)"
end