Simplify conditional.

This commit is contained in:
Markus Reiter 2024-02-12 07:29:10 +01:00
parent ba29328b59
commit 22bb15748b
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -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