diff options
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/definition.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 8877d2661e..602893c62a 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -680,13 +680,10 @@ module Bundler end def converge_specs(specs) - deps = [] converged = [] - @dependencies.each do |dep| - if specs[dep].any? {|s| s.satisfies?(dep) && (!dep.source || s.source.include?(dep.source)) } - deps << dep - end + deps = @dependencies.select do |dep| + specs[dep].any? {|s| s.satisfies?(dep) && (!dep.source || s.source.include?(dep.source)) } end specs.each do |s| |