From 8ab9465ad2ac9b8d4b2d72180d6000b755478a9d Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Mon, 13 Dec 2021 16:44:33 +0000 Subject: [PATCH] formula_auditor: fix error with formulae without taps --- Library/Homebrew/formula_auditor.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index b5e4494246909..b5093730bfa20 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -121,6 +121,8 @@ def self.aliases SYNCED_VERSIONS_FORMULAE_FILE = "synced_versions_formulae.json" def audit_synced_versions_formulae + return unless formula.tap + synced_versions_formulae_file = formula.tap.path/SYNCED_VERSIONS_FORMULAE_FILE return unless synced_versions_formulae_file.file?