1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Remove unnecessary option mutation

https://github.com/rubygems/rubygems/commit/744c03d144
This commit is contained in:
David Rodríguez 2020-05-28 23:00:19 +02:00 committed by Hiroshi SHIBATA
parent 332ecb0ad1
commit 97d05c9db3
Notes: git 2020-06-05 07:33:59 +09:00

View file

@ -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