Skip to content

Commit 335ef5e

Browse files
deivid-rodriguezmatzbot
authored andcommitted
[rubygems/rubygems] Remove no longer necessary code
ruby/rubygems@2a36af0f38
1 parent 796757a commit 335ef5e

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

lib/bundler/definition.rb

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -964,19 +964,7 @@ def converge_specs(specs)
964964

965965
# Path sources have special logic
966966
if s.source.instance_of?(Source::Path) || s.source.instance_of?(Source::Gemspec)
967-
new_specs = begin
968-
s.source.specs
969-
rescue PathError
970-
# if we won't need the source (according to the lockfile),
971-
# don't error if the path source isn't available
972-
next if specs.
973-
for(requested_dependencies, false).
974-
none? {|locked_spec| locked_spec.source == s.source }
975-
976-
raise
977-
end
978-
979-
new_spec = new_specs[s].first
967+
new_spec = s.source.specs[s].first
980968
if new_spec
981969
s.dependencies.replace(new_spec.dependencies)
982970
else

0 commit comments

Comments
 (0)