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:
parent
332ecb0ad1
commit
97d05c9db3
Notes:
git
2020-06-05 07:33:59 +09:00
1 changed files with 2 additions and 5 deletions
|
@ -161,14 +161,11 @@ module Bundler
|
||||||
without |= Bundler.settings[:without].map(&:to_s)
|
without |= Bundler.settings[:without].map(&:to_s)
|
||||||
without -= options[:with] if options[:with]
|
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
|
# 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 :without, nil
|
||||||
Bundler.settings.set_command_option :with, nil
|
Bundler.settings.set_command_option :with, nil
|
||||||
Bundler.settings.set_command_option :without, options[:without] - options[:with]
|
Bundler.settings.set_command_option :without, without - with
|
||||||
Bundler.settings.set_command_option :with, options[:with]
|
Bundler.settings.set_command_option :with, with
|
||||||
end
|
end
|
||||||
|
|
||||||
def normalize_settings
|
def normalize_settings
|
||||||
|
|
Loading…
Add table
Reference in a new issue