Merge pull request #9249 from issyl0/fix-undefined-audit-exceptions-when-outside-a-tap

dev-cmd/audit: Fix "undefined method audit_exceptions"
This commit is contained in:
Issy Long 2020-11-21 21:01:59 +00:00 committed by GitHub
commit a53b830232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,7 +180,7 @@ module Homebrew
except: args.except,
spdx_license_data: spdx_license_data,
spdx_exception_data: spdx_exception_data,
tap_audit_exceptions: f.tap.audit_exceptions,
tap_audit_exceptions: f.tap&.audit_exceptions,
style_offenses: style_offenses ? style_offenses.for_path(f.path) : nil,
display_cop_names: args.display_cop_names?,
build_stable: args.build_stable?,