Skip to content

Commit

Permalink
Rename conflict variable around block parameter
Browse files Browse the repository at this point in the history
It removes below ruby's warning.

* "warning: shadowing outer local variable"
  • Loading branch information
kachick committed Jan 26, 2013
1 parent 94e5d4f commit c68c9e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/httparty/hash_conversions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ def self.normalize_param(key, value)
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
Expand Down

0 comments on commit c68c9e3

Please sign in to comment.