From e2d10337f36241a5439d48333a7e289ba11f5088 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Fri, 6 Dec 2024 11:25:51 -0800 Subject: [PATCH] Fix alias_name logic --- Library/Homebrew/formulary.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index ea0d0dc65b..823a51f4dd 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -671,7 +671,7 @@ module Formulary alias_path = nil if alias_dir != tap&.alias_dir - super(name, path, alias_path:, tap: tap) + super(name, path, alias_path:, tap:) end end @@ -916,7 +916,7 @@ module Formulary name, tap, type = name_tap_type - alias_name = alias_name.downcase if type == :alias + alias_name = (type == :alias) ? alias_name.downcase : nil new(name, tap:, alias_name:) end