Avoid the need to compact the expanded deps array
This commit is contained in:
parent
c4d7e21df5
commit
71586d09aa
@ -73,13 +73,13 @@ class Dependency
|
||||
deps = dependent.deps.map do |dep|
|
||||
case action(dependent, dep, &block)
|
||||
when :prune
|
||||
next
|
||||
next []
|
||||
when :skip
|
||||
expand(dep.to_formula, &block)
|
||||
else
|
||||
expand(dep.to_formula, &block) << dep
|
||||
end
|
||||
end.flatten.compact
|
||||
end.flatten
|
||||
|
||||
merge_repeats(deps)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user