Skip to content

Commit

Permalink
Clear cache for Tap#formula_reverse_renames.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Mar 1, 2024
1 parent f1eea64 commit 3e815b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def clear_cache
@formula_names = nil
@formula_files = nil
@formula_files_by_name = nil
@formula_reverse_renames = nil
@cask_files = nil
@cask_files_by_name = nil
@alias_dir = nil
Expand Down Expand Up @@ -802,6 +803,8 @@ def formula_renames
end

# Hash with tap formula old names. Reverse of {#formula_renames}.
#
# @private
sig { returns(T::Hash[String, T::Array[String]]) }
def formula_reverse_renames
@formula_reverse_renames ||= formula_renames.each_with_object({}) do |(old_name, new_name), hash|
Expand Down

0 comments on commit 3e815b8

Please sign in to comment.