Fix alias_name logic
This commit is contained in:
parent
9a2b386a52
commit
e2d10337f3
@ -671,7 +671,7 @@ module Formulary
|
|||||||
|
|
||||||
alias_path = nil if alias_dir != tap&.alias_dir
|
alias_path = nil if alias_dir != tap&.alias_dir
|
||||||
|
|
||||||
super(name, path, alias_path:, tap: tap)
|
super(name, path, alias_path:, tap:)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -916,7 +916,7 @@ module Formulary
|
|||||||
|
|
||||||
name, tap, type = name_tap_type
|
name, tap, type = name_tap_type
|
||||||
|
|
||||||
alias_name = alias_name.downcase if type == :alias
|
alias_name = (type == :alias) ? alias_name.downcase : nil
|
||||||
|
|
||||||
new(name, tap:, alias_name:)
|
new(name, tap:, alias_name:)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user