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
|
type = nil
|
||||||
|
|
||||||
# FIXME: Remove the need to do this here.
|
# FIXME: Remove the need to do this here.
|
||||||
alias_table_key = if tap.core_tap?
|
alias_table_key = tap.core_tap? ? name : "#{tap}/#{name}"
|
||||||
name
|
|
||||||
else
|
|
||||||
"#{tap}/#{name}"
|
|
||||||
end
|
|
||||||
|
|
||||||
if (possible_alias = tap.alias_table[alias_table_key].presence)
|
if (possible_alias = tap.alias_table[alias_table_key].presence)
|
||||||
# FIXME: Remove the need to split the name and instead make
|
# FIXME: Remove the need to split the name and instead make
|
||||||
|
Loading…
x
Reference in New Issue
Block a user