Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
remove code that was previously unreachable
Browse files Browse the repository at this point in the history
Some code that used to be unreachable was changed in https://github.com/bundler/bundler/issues/6829. This is causing some issues on some versions of Ruby, see #6849.
  • Loading branch information
colby-swandale committed Dec 26, 2018
1 parent a845a0d commit c85bb05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/bundler/source/metadata.rb
Expand Up @@ -21,9 +21,8 @@ def specs
# can't point to the actual gemspec or else the require paths will be wrong
s.loaded_from = File.expand_path("..", __FILE__)
end
if loaded_spec = Bundler.rubygems.loaded_specs("bundler")
idx << loaded_spec # this has to come after the fake gemspec, to override it
elsif local_spec = Bundler.rubygems.find_name("bundler").find {|s| s.version.to_s == VERSION }

if local_spec = Bundler.rubygems.find_name("bundler").find {|s| s.version.to_s == VERSION }
idx << local_spec
end

Expand Down

0 comments on commit c85bb05

Please sign in to comment.