Skip to content

Commit

Permalink
Move comment where the actual replacement happens
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Aug 6, 2022
1 parent 3a843c1 commit d60acdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundler/lib/bundler/definition.rb
Expand Up @@ -740,9 +740,9 @@ def converge_specs(specs)
end

specs.each do |s|
# Replace the locked dependency's source with the equivalent source from the Gemfile
dep = @dependencies.find {|d| s.satisfies?(d) }

# Replace the locked dependency's source with the equivalent source from the Gemfile
s.source = (dep && dep.source) || sources.get_with_fallback(s.source)

next if @unlock[:sources].include?(s.source.name)
Expand Down

0 comments on commit d60acdf

Please sign in to comment.