Skip to content

Commit

Permalink
[rubygems/rubygems] Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and hsbt committed Oct 18, 2022
1 parent 931bcd1 commit 4205190
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/bundler/resolver.rb
Expand Up @@ -264,18 +264,7 @@ def verify_gemfile_dependencies_are_found!(requirements)
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

Expand Down

0 comments on commit 4205190

Please sign in to comment.