Skip to content
Snippets Groups Projects
Commit 6f3039fc authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

cmd/deps: avoid some full-name code repetition.

parent bcdd20a1
No related branches found
No related tags found
No related merge requests found
......@@ -64,11 +64,11 @@ module Homebrew
else
all_deps = deps_for_formulae(ARGV.formulae, !ARGV.one?, &(mode.union? ? :| : :&))
all_deps = all_deps.select(&:installed?) if mode.installed?
if ARGV.include? "--full-name"
all_deps = all_deps.map(&:to_formula).map(&:full_name).uniq
all_deps = if ARGV.include? "--full-name"
all_deps.map(&:to_formula).map(&:full_name)
else
all_deps = all_deps.map(&:name).uniq
end
all_deps.map(&:name)
end.uniq
all_deps.sort! unless mode.topo_order?
puts all_deps
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment