Check tap_audit_exception only if tap is present

This commit is contained in:
Carlo Cabrera 2021-07-20 13:08:15 +08:00
parent 1678a3785e
commit 55cc1eb8b0
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -330,7 +330,8 @@ module FormulaCellarChecks
end end
mismatches -= compatible_universal_binaries 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 return if mismatches.empty? && universal_binaries_expected
s = "" s = ""