diff options
Diffstat (limited to 'lib/bundler/definition.rb')
-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 |