Skip to content
Browse files

Don't shadow variables.

  • Loading branch information...
1 parent f9fcebe commit aac36ded6a81ebcd357445e2b4d0b9d814d4b45d Bob Aman committed Jul 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/addressable/template.rb
View
4 lib/addressable/template.rb
@@ -698,7 +698,7 @@ def join_values(operator, return_value)
if v.is_a?(Array) && v.first =~ /=/
v.join(joiner)
elsif v.is_a?(Array)
- v.map{|v| "#{k}=#{v}"}.join(joiner)
+ v.map{|inner_value| "#{k}=#{inner_value}"}.join(joiner)
else
"#{k}=#{v}"
end
@@ -708,7 +708,7 @@ def join_values(operator, return_value)
if v.is_a?(Array) && v.first =~ /=/
';' + v.join(";")
elsif v.is_a?(Array)
- ';' + v.map{|v| "#{k}=#{v}"}.join(";")
+ ';' + v.map{|inner_value| "#{k}=#{inner_value}"}.join(";")
else
v && v != '' ? ";#{k}=#{v}" : ";#{k}"
end

0 comments on commit aac36de

Please sign in to comment.
Something went wrong with that request. Please try again.