mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Simplify conditional.
This commit is contained in:
parent
ba29328b59
commit
22bb15748b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user