cmd/desc: fix Rubocop warnings.
This commit is contained in:
parent
128729988e
commit
5e0c222029
@ -26,14 +26,12 @@ module Homebrew
|
||||
results.print
|
||||
elsif search_type.size > 1
|
||||
odie "Pick one, and only one, of -s/--search, -n/--name, or -d/--description."
|
||||
elsif arg = ARGV.named.first
|
||||
regex = Homebrew.query_regexp(arg)
|
||||
results = Descriptions.search(regex, search_type.first)
|
||||
results.print
|
||||
else
|
||||
if arg = ARGV.named.first
|
||||
regex = Homebrew::query_regexp(arg)
|
||||
results = Descriptions.search(regex, search_type.first)
|
||||
results.print
|
||||
else
|
||||
odie "You must provide a search term."
|
||||
end
|
||||
odie "You must provide a search term."
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user