Commit 411bfb13 authored by Marius Rackwitz's avatar Marius Rackwitz

[Refactor] Use existing method as shortcut

Instead of re-implementing the same call chain
parent ca511f0f
......@@ -57,8 +57,8 @@ module Pod
# depends.
#
def dependencies
specs.map do |spec|
spec.consumer(platform).dependencies.map { |dep| Specification.root_name(dep.name) }
spec_consumers.map do |consumer|
consumer.dependencies.map { |dep| Specification.root_name(dep.name) }
end.flatten
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment