зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Use `flat_map`
https://github.com/rubygems/rubygems/commit/b31308fb4c
This commit is contained in:
Родитель
71dede387e
Коммит
b99010f9f2
|
@ -792,12 +792,10 @@ module Bundler
|
|||
end
|
||||
|
||||
def expand_dependencies(dependencies)
|
||||
deps = []
|
||||
dependencies.each do |dep|
|
||||
dependencies.flat_map do |dep|
|
||||
target_platforms = dep.gem_platforms(@platforms)
|
||||
deps += expand_dependency_with_platforms(dep, target_platforms)
|
||||
expand_dependency_with_platforms(dep, target_platforms)
|
||||
end
|
||||
deps
|
||||
end
|
||||
|
||||
def expand_dependency_with_platforms(dep, platforms)
|
||||
|
|
Загрузка…
Ссылка в новой задаче