diff options
author | Piotr Szotkowski <chastell@chastell.net> | 2013-02-24 19:14:33 +0100 |
---|---|---|
committer | Piotr Szotkowski <chastell@chastell.net> | 2013-02-24 19:14:33 +0100 |
commit | 1acc71a39544a0e89a3d781376573cc7f578e410 (patch) | |
tree | 36eb7b2d2d10c0db627841afe0aff389d263dbd3 | |
parent | 9dd73afd0e121717eead7517b087139c87be7bb8 (diff) | |
download | bundler-1acc71a39544a0e89a3d781376573cc7f578e410.tar.gz |
minor rename to remove variable shadowing warning
-rw-r--r-- | lib/bundler/resolver.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb index b305a3416c..7e4b1605de 100644 --- a/lib/bundler/resolver.rb +++ b/lib/bundler/resolver.rb @@ -302,12 +302,12 @@ module Bundler # on this conflict. Note that if the tree has multiple conflicts, we don't # care which one we throw, as long as we get out safe if !current.required_by.empty? && !conflicts.empty? - @errors.reverse_each do |name, pair| - if conflicts.include?(name) + @errors.reverse_each do |req_name, pair| + if conflicts.include?(req_name) # Choose the closest pivot in the stack that will affect the conflict - errorpivot = (@stack & [name, current.required_by.last.name]).last + errorpivot = (@stack & [req_name, current.required_by.last.name]).last debug { " -> Jumping to: #{errorpivot}" } - throw errorpivot, name + throw errorpivot, req_name end end end |