From d19c266b49022e6788a4e14be86fef22a73d5871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 17 Nov 2021 12:02:24 +0100 Subject: [rubygems/rubygems] Reuse `locked_dependencies` helper It makes the code more consistent with the above line. https://github.com/rubygems/rubygems/commit/f28d05a548 --- lib/bundler/definition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 24d877a8fa..58612e5c16 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -400,7 +400,7 @@ module Bundler both_sources = Hash.new {|h, k| h[k] = [] } @dependencies.each {|d| both_sources[d.name][0] = d } - @locked_deps.each {|name, d| both_sources[name][1] = d.source } + locked_dependencies.each {|d| both_sources[d.name][1] = d.source } both_sources.each do |name, (dep, lock_source)| next if lock_source.nil? || lock_source.can_lock?(dep) -- cgit v1.2.3