diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-09-29 07:16:32 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-10-18 16:33:15 +0900 |
commit | 4205190cb24c350f0fbe5471881c25e8ecece96c (patch) | |
tree | 96f35ddcd38165d61fedc09229d0bd5bd38126d1 /lib/bundler | |
parent | 931bcd1b6315de5407a73019482bd3919f16820d (diff) | |
download | ruby-4205190cb24c350f0fbe5471881c25e8ecece96c.tar.gz |
[rubygems/rubygems] Remove dead code
https://github.com/rubygems/rubygems/commit/999b644708
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/resolver.rb | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb index 161a3c0518..104e149f6b 100644 --- a/lib/bundler/resolver.rb +++ b/lib/bundler/resolver.rb @@ -264,18 +264,7 @@ module Bundler next requirement unless search_for(requirement).empty? next unless requirement.current_platform? - if (base = @base[name]) && !base.empty? - version = base.first.version - message = "You have requested:\n" \ - " #{name} #{requirement.requirement}\n\n" \ - "The bundle currently has #{name} locked at #{version}.\n" \ - "Try running `bundle update #{name}`\n\n" \ - "If you are updating multiple gems in your Gemfile at once,\n" \ - "try passing them all to `bundle update`" - else - message = gem_not_found_message(name, requirement, source_for(name)) - end - raise GemNotFound, message + raise GemNotFound, gem_not_found_message(name, requirement, source_for(name)) end.compact! end |