From 55cc1eb8b098283cd280cf91974890fadcf808f4 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Tue, 20 Jul 2021 13:08:15 +0800 Subject: [PATCH] Check `tap_audit_exception` only if tap is present --- Library/Homebrew/formula_cellar_checks.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index 16f69fbbc0..080adbbe5b 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -330,7 +330,8 @@ module FormulaCellarChecks end mismatches -= compatible_universal_binaries - universal_binaries_expected = tap_audit_exception(:universal_binary_allowlist, formula.name) + universal_binaries_expected = + formula.tap.present? && tap_audit_exception(:universal_binary_allowlist, formula.name) return if mismatches.empty? && universal_binaries_expected s = ""