From 97d05c9db38f92b214cd30bb821ce29add20f082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Thu, 28 May 2020 23:00:19 +0200 Subject: [PATCH] [rubygems/rubygems] Remove unnecessary option mutation https://github.com/rubygems/rubygems/commit/744c03d144 --- lib/bundler/cli/install.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb index dcd8d7cf7d..ed21485170 100644 --- a/lib/bundler/cli/install.rb +++ b/lib/bundler/cli/install.rb @@ -161,14 +161,11 @@ module Bundler without |= Bundler.settings[:without].map(&:to_s) without -= options[:with] if options[:with] - options[:with] = with - options[:without] = without - # need to nil them out first to get around validation for backwards compatibility Bundler.settings.set_command_option :without, nil Bundler.settings.set_command_option :with, nil - Bundler.settings.set_command_option :without, options[:without] - options[:with] - Bundler.settings.set_command_option :with, options[:with] + Bundler.settings.set_command_option :without, without - with + Bundler.settings.set_command_option :with, with end def normalize_settings