Actually cache Tap#style_exceptions.

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

View File

@ -857,7 +857,7 @@ class Tap
# Hash with style exceptions # Hash with style exceptions
sig { returns(Hash) } sig { returns(Hash) }
def style_exceptions def style_exceptions
@style_exceptions = read_formula_list_directory "#{HOMEBREW_TAP_STYLE_EXCEPTIONS_DIR}/*" @style_exceptions ||= read_formula_list_directory("#{HOMEBREW_TAP_STYLE_EXCEPTIONS_DIR}/*")
end end
# Hash with pypi formula mappings # Hash with pypi formula mappings