From 2d4d406b6d6b8b6e8cc8a17418bc738d12ae00b3 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 12 Feb 2024 07:29:10 +0100 Subject: [PATCH] Simplify conditional. --- Library/Homebrew/formulary.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index fb14c3d4ecaf8a..bef913eb929fc5 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -1104,11 +1104,7 @@ def self.tap_formula_name_type(tapped_name, warn:) type = nil # FIXME: Remove the need to do this here. - alias_table_key = if tap.core_tap? - name - else - "#{tap}/#{name}" - end + alias_table_key = tap.core_tap? ? name : "#{tap}/#{name}" if (possible_alias = tap.alias_table[alias_table_key].presence) # FIXME: Remove the need to split the name and instead make