From 5cc1ddc5c5de22bed45faa392b6eb6a3549d4e99 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 9 Feb 2024 17:03:01 +0100 Subject: [PATCH] Use numbered block parameter. Co-authored-by: Douglas Eichelberger <697964+dduugg@users.noreply.github.com> --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 3160e4968a..aa8a5393c3 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -546,7 +546,7 @@ class Formula # All aliases for the formula. sig { returns(T::Array[String]) } def aliases - @aliases ||= tap&.alias_reverse_table&.dig(full_name)&.map { |a| a.split("/").last } || [] + @aliases ||= tap&.alias_reverse_table&.dig(full_name)&.map { _1.split("/").last } || [] end # The {Resource}s for the currently active {SoftwareSpec}.