[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
This commit is contained in:
Josh Nichols 2023-08-16 15:08:54 -04:00 committed by git
parent 239e35254b
commit 29aab66e6b

View File

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