diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-07-04 19:04:00 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-10-18 16:33:15 +0900 |
commit | 67de00053a26db9d976efa393d121479b5315f5e (patch) | |
tree | 4ece651aa086c115d8f8b8bf0cb669f0a293cbb8 | |
parent | b99010f9f2aa9e8ea100f4cdbe1e2f1a5601fd5e (diff) | |
download | ruby-67de00053a26db9d976efa393d121479b5315f5e.tar.gz |
[rubygems/rubygems] Inline helper method
https://github.com/rubygems/rubygems/commit/e60459d6b6
-rw-r--r-- | lib/bundler/definition.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 374462ab49..a3042e06a3 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -793,14 +793,9 @@ module Bundler def expand_dependencies(dependencies) dependencies.flat_map do |dep| - target_platforms = dep.gem_platforms(@platforms) - expand_dependency_with_platforms(dep, target_platforms) - end - end - - def expand_dependency_with_platforms(dep, platforms) - platforms.map do |p| - DepProxy.get_proxy(dep, p) + dep.gem_platforms(@platforms).map do |p| + DepProxy.get_proxy(dep, p) + end end end |