Skip to content
Snippets Groups Projects
Commit c88b67f3 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

missing: simplify code a bit

parent 8e3e8e31
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@ require "utils/shell"
module Homebrew
module Diagnostic
def self.missing_deps(ff, hide = nil)
hide ||= []
missing = {}
ff.each do |f|
missing_deps = f.recursive_dependencies do |dependent, dep|
......@@ -20,12 +22,8 @@ module Homebrew
end
missing_deps.map!(&:to_formula)
if hide
missing_deps.reject! do |d|
!hide.include?(d.name) && d.installed_prefixes.any?
end
else
missing_deps.reject! { |d| d.installed_prefixes.any? }
missing_deps.reject! do |d|
!hide.include?(d.name) && d.installed_prefixes.any?
end
unless missing_deps.empty?
......
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