diff options
author | Josh Nichols <josh.nichols@gusto.com> | 2023-08-16 15:08:54 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-20 09:06:43 +0000 |
commit | 29aab66e6b7e71e139644817109c20a26fa05f3e (patch) | |
tree | b73bc7a00dfb9030e1682197df059ee2d88103d2 /lib/bundler/settings.rb | |
parent | 239e35254bc26e747d40fd99e348d486d9ae9f87 (diff) |
[rubygems/rubygems] call key.to_s once instead of multiple times to save when it's a symbol
https://github.com/rubygems/rubygems/commit/535feb817c
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r-- | lib/bundler/settings.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index 0275844dc1..3aba4247a0 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -412,6 +412,8 @@ module Bundler end def converted_value(value, key) + key = key.to_s + if is_array(key) to_array(value) elsif value.nil? |