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:
parent
94e5d4f396
commit
c68c9e3aad
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue