formula_auditor: fix error with formulae without taps

This commit is contained in:
Bo Anderson 2021-12-13 16:44:33 +00:00
parent 146af8404d
commit 8ab9465ad2
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

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?