mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Remove unnecessary spec sorting
Specs in a SpecSet with the same name are only sorted by platform priority when they are read. No need to sort everything eagerly. https://github.com/rubygems/rubygems/commit/aeafff52df
This commit is contained in:
parent
acc61cbf4a
commit
a4860e043e
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ module Bundler
|
|||
def lookup
|
||||
@lookup ||= begin
|
||||
lookup = Hash.new {|h, k| h[k] = [] }
|
||||
Index.sort_specs(@specs).reverse_each do |s|
|
||||
@specs.each do |s|
|
||||
lookup[s.name] << s
|
||||
end
|
||||
lookup
|
||||
|
|
Loading…
Reference in a new issue