Use numbered block parameter.

Co-authored-by: Douglas Eichelberger <697964+dduugg@users.noreply.github.com>
This commit is contained in:
Markus Reiter 2024-02-09 17:03:01 +01:00 committed by GitHub
parent a20d95b1b5
commit 5cc1ddc5c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -546,7 +546,7 @@ class Formula
# All aliases for the formula. # All aliases for the formula.
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def aliases 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 end
# The {Resource}s for the currently active {SoftwareSpec}. # The {Resource}s for the currently active {SoftwareSpec}.