Actually cache Tap#audit_exceptions.

This commit is contained in:
Markus Reiter 2024-02-23 15:07:42 +01:00
parent 8d4e841965
commit 9e8acb6312
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -851,7 +851,7 @@ class Tap
# Hash with audit exceptions
sig { returns(Hash) }
def audit_exceptions
@audit_exceptions = read_formula_list_directory "#{HOMEBREW_TAP_AUDIT_EXCEPTIONS_DIR}/*"
@audit_exceptions ||= read_formula_list_directory("#{HOMEBREW_TAP_AUDIT_EXCEPTIONS_DIR}/*")
end
# Hash with style exceptions