1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Rename conflict variable around block parameter

It removes below ruby's warning.

* "warning: shadowing outer local variable"
This commit is contained in:
Kenichi Kamiya 2013-01-26 22:35:05 +09:00
parent 94e5d4f396
commit c68c9e3aad

View file

@ -36,11 +36,11 @@ module HTTParty
end
stack.each do |parent, hash|
hash.each do |key, value|
hash.each do |k, v|
if value.is_a?(Hash)
stack << ["#{parent}[#{key}]", value]
stack << ["#{parent}[#{k}]", v]
else
param << normalize_param("#{parent}[#{key}]", value)
param << normalize_param("#{parent}[#{k}]", v)
end
end
end