diff options
author | Andre Arko <andre@arko.net> | 2012-03-10 20:57:24 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2012-03-10 20:57:24 -0800 |
commit | 1e82d7f9c32e47cc8624d38742a5535f603fd0a0 (patch) | |
tree | 80f9f4e3a0ad03540ea0c24d185360b71f0040c7 | |
parent | 29d01fd7219251d1765ece6c91c0c8c686dbe057 (diff) | |
download | bundler-1e82d7f9c32e47cc8624d38742a5535f603fd0a0.tar.gz |
fix shadowed variable warning
-rw-r--r-- | lib/bundler.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 80f8366116..ee4d5f6971 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -252,9 +252,9 @@ module Bundler if File.executable?(executable) executable else - path = ENV['PATH'].split(File::PATH_SEPARATOR).find { |path| - File.executable?(File.join(path, executable)) - } + path = ENV['PATH'].split(File::PATH_SEPARATOR).find do |p| + File.executable?(File.join(p, executable)) + end path && File.expand_path(executable, path) end end |