From 22bb15748b3c182a7862febe04f2830177a5ecda 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 1cd9878931..264acde229 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -1104,11 +1104,7 @@ module Formulary 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