From ed37de1c8201a00eeb40468543313f078469e6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 26 Jun 2019 16:42:38 +0200 Subject: [PATCH] [bundler/bundler] Inline `expanded_deps` It's now only used once, and doing it like this is consistent with the previous line. https://github.com/bundler/bundler/commit/7d27330fc7 --- lib/bundler/definition.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 079f3ddbb5..339c38ab72 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -812,9 +812,8 @@ module Bundler end resolve = SpecSet.new(converged) - expanded_deps = expand_dependencies(deps, true) @locked_specs_incomplete_for_platform = !resolve.for(expand_dependencies(deps), @unlock[:gems], true, true) - resolve = resolve.for(expanded_deps, @unlock[:gems], false, false, false) + resolve = resolve.for(expand_dependencies(deps, true), @unlock[:gems], false, false, false) diff = nil # Now, we unlock any sources that do not have anymore gems pinned to it