1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Don't unnecessarily loop twice through dependencies

https://github.com/rubygems/rubygems/commit/06b4a7994d
This commit is contained in:
David Rodríguez 2021-11-17 15:26:06 +01:00 committed by git
parent 4c5e862434
commit 0073f624f0

View file

@ -634,15 +634,13 @@ module Bundler
end
def converge_dependencies
changes = false
@dependencies.each do |dep|
if dep.source
dep.source = sources.get(dep.source)
end
end
changes = false
@dependencies.each do |dep|
unless locked_dep = @locked_deps[dep.name]
changes = true
next