diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-11-17 12:02:24 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-12-03 20:00:48 +0900 |
commit | d19c266b49022e6788a4e14be86fef22a73d5871 (patch) | |
tree | cc417a2b17d58e709add4693caf0288eda5ec638 | |
parent | 901a257533d3bc2139770817def14e1f6017be2f (diff) |
[rubygems/rubygems] Reuse `locked_dependencies` helper
It makes the code more consistent with the above line.
https://github.com/rubygems/rubygems/commit/f28d05a548
-rw-r--r-- | lib/bundler/definition.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |