[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:
parent
239e35254b
commit
29aab66e6b
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user