Skip to content

Commit

Permalink
Simplify conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Feb 12, 2024
1 parent f4b9658 commit 2d4d406
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Library/Homebrew/formulary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d4d406

Please sign in to comment.