Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't shadow variables.

  • Loading branch information...
commit aac36ded6a81ebcd357445e2b4d0b9d814d4b45d 1 parent f9fcebe
Bob Aman authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.