From 50f94e5233877713b9ebcff94f48f623f53b278e Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Tue, 15 Dec 2015 15:33:27 +0100 Subject: [PATCH] audit: don't fail if there's no tap Closes Homebrew/homebrew#47041. Signed-off-by: Baptiste Fontaine --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 5e3038c71f..c9cd191894 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -235,7 +235,7 @@ class FormulaAuditor def audit_formula_name return unless @strict # skip for non-official taps - return unless formula.tap.official? + return if formula.tap.nil? || !formula.tap.official? name = formula.name full_name = formula.full_name