From 9e8acb6312855af4b511e49ca6ddd24cb3454540 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 23 Feb 2024 15:07:42 +0100 Subject: [PATCH] Actually cache `Tap#audit_exceptions`. --- Library/Homebrew/tap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index c3fbc5f733..48884a6e0f 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -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