Skip to content
Snippets Groups Projects
Commit c0463132 authored by Steve Peters's avatar Steve Peters
Browse files

upgrade: deduplicate list of outdated dependents

Use `uniq` on the list of outdated dependents to remove
duplicates, similar to a change made in #8500.
parent fd4ed351
No related branches found
No related tags found
No related merge requests found
......@@ -142,6 +142,7 @@ module Homebrew
outdated_dependents =
installed_formulae.flat_map(&:runtime_installed_formula_dependents)
.uniq
.select(&:outdated?)
return if outdated_dependents.blank? && already_broken_dependents.blank?
......
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