зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] util/rubocop -A --only Style/RedundantSortBy
https://github.com/rubygems/rubygems/commit/3e4f5dc008
This commit is contained in:
Родитель
2db7673825
Коммит
a532e9dc37
|
@ -331,7 +331,7 @@ module Gem::QueryUtils
|
|||
else
|
||||
entry << " Platforms:\n"
|
||||
|
||||
sorted_platforms = platforms.sort_by {|version,| version }
|
||||
sorted_platforms = platforms.sort
|
||||
|
||||
sorted_platforms.each do |version, pls|
|
||||
label = " #{version}: "
|
||||
|
|
|
@ -86,7 +86,7 @@ class Gem::RequestSet::Lockfile
|
|||
def add_DEPENDENCIES(out) # :nodoc:
|
||||
out << "DEPENDENCIES"
|
||||
|
||||
out.concat @dependencies.sort_by {|name,| name }.map {|name, requirement|
|
||||
out.concat @dependencies.sort.map {|name, requirement|
|
||||
" #{name}#{requirement.for_lockfile}"
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче