Merge pull request #12559 from Bo98/audit-no-tap

formula_auditor: fix error with formulae without taps
This commit is contained in:
Bo Anderson 2021-12-14 00:51:49 +00:00 committed by GitHub
commit 29426f0db6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,6 +121,8 @@ module Homebrew
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?