Fix audit when tap is nil
This is the case when a formula is passed as a filename.
This commit is contained in:
parent
a639601f14
commit
22269b7007
@ -420,11 +420,11 @@ class FormulaAuditor
|
|||||||
end
|
end
|
||||||
|
|
||||||
def audit_specs
|
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)"
|
problem "Head-only (no stable download)"
|
||||||
end
|
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)"
|
problem "Devel-only (no stable download)"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user