Skip to content

Commit

Permalink
Remove unnecessary name and platform filter
Browse files Browse the repository at this point in the history
It's already done before.
  • Loading branch information
deivid-rodriguez committed May 26, 2022
1 parent a67ecf8 commit 49d28cf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/rubygems/commands/update_command.rb
Expand Up @@ -162,11 +162,7 @@ def highest_installed_gems # :nodoc:
def highest_remote_name_tuple(spec) # :nodoc:
spec_tuples = fetch_remote_gems spec

matching_gems = spec_tuples.select do |g,_|
g.name == spec.name and g.match_platform?
end

highest_remote_gem = matching_gems.max
highest_remote_gem = spec_tuples.max

highest_remote_gem ||= [Gem::NameTuple.null]

Expand Down

0 comments on commit 49d28cf

Please sign in to comment.