[rubygems/rubygems] Remove no longer necessary code

https://github.com/rubygems/rubygems/commit/2a36af0f38
This commit is contained in:
David Rodríguez 2024-11-15 10:57:17 +01:00 committed by git
parent 796757a01c
commit 335ef5ed81

View File

@ -964,19 +964,7 @@ module Bundler
# Path sources have special logic
if s.source.instance_of?(Source::Path) || s.source.instance_of?(Source::Gemspec)
new_specs = begin
s.source.specs
rescue PathError
# if we won't need the source (according to the lockfile),
# don't error if the path source isn't available
next if specs.
for(requested_dependencies, false).
none? {|locked_spec| locked_spec.source == s.source }
raise
end
new_spec = new_specs[s].first
new_spec = s.source.specs[s].first
if new_spec
s.dependencies.replace(new_spec.dependencies)
else