cli/args: cleanup weird style.

This got autofixed by RuboCop but looks weird.
This commit is contained in:
Mike McQuaid 2020-05-07 10:02:34 +01:00
parent 954c833de2
commit 85a9fc4abe
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -79,8 +79,7 @@ module Homebrew
else else
Formulary.find_with_priority(name, spec) Formulary.find_with_priority(name, spec)
end end
end.uniq(&:name) end.uniq(&:name).freeze
.freeze
end end
def resolved_formulae def resolved_formulae
@ -88,15 +87,13 @@ module Homebrew
@resolved_formulae ||= (downcased_unique_named - casks).map do |name| @resolved_formulae ||= (downcased_unique_named - casks).map do |name|
Formulary.resolve(name, spec: spec(nil)) Formulary.resolve(name, spec: spec(nil))
end.uniq(&:name) end.uniq(&:name).freeze
.freeze
end end
def formulae_paths def formulae_paths
@formulae_paths ||= (downcased_unique_named - casks).map do |name| @formulae_paths ||= (downcased_unique_named - casks).map do |name|
Formulary.path(name) Formulary.path(name)
end.uniq end.uniq.freeze
.freeze
end end
def casks def casks