diff options
| author | Jack Nagel | 2014-07-06 11:16:10 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-07-06 11:16:10 -0500 | 
| commit | ce0d1fee967532e499402b2a32584ac14c1e1fb5 (patch) | |
| tree | 33bce07dbce5bf13f942f6a7a16da5cbee3f39f6 /Library/Homebrew/utils.rb | |
| parent | fe7198548805a19ec0a719487d5807cd3eba2fb6 (diff) | |
| download | homebrew-ce0d1fee967532e499402b2a32584ac14c1e1fb5.tar.bz2 | |
Just use each since we're returning from inside the block
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 9a73bf829..0bbf8a795 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -183,7 +183,7 @@ def puts_columns items, star_items=[]  end  def which cmd, path=ENV['PATH'] -  path.split(File::PATH_SEPARATOR).find do |p| +  path.split(File::PATH_SEPARATOR).each do |p|      pcmd = File.expand_path(File.join(p, cmd))      return Pathname.new(pcmd) if File.executable?(pcmd) && !File.directory?(pcmd)    end  | 
