diff options
| author | Adam Vandenberg | 2010-04-12 13:09:51 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-12 13:09:51 -0700 |
| commit | 63f75fbe198c8645b96b664b27e0a2a34ce3e91a (patch) | |
| tree | 88d8cf7934527ce1e4ffc51e41bf4d18bd6b479b /Library | |
| parent | 7adcf94ab5c31c27c4e54865dd74c1de2eb80793 (diff) | |
| download | homebrew-63f75fbe198c8645b96b664b27e0a2a34ce3e91a.tar.bz2 | |
Use Array#length instead of count. Fixes #1165
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew_doctor.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb index c6d7c81d9..146755d49 100644 --- a/Library/Homebrew/brew_doctor.rb +++ b/Library/Homebrew/brew_doctor.rb @@ -1,6 +1,6 @@ def check_for_stray_dylibs bad_dylibs = Dir['/usr/local/lib/*.dylib'].select { |f| File.file? f and not File.symlink? f } - if bad_dylibs.count > 0 + if bad_dylibs.length > 0 puts "You have unbrewed dylibs in /usr/local/lib. These could cause build problems" puts "when building Homebrew formula. If you no longer need them, delete them:" puts @@ -67,7 +67,7 @@ def check_share_locale end cant_read.sort! - if cant_read.count > 0 + if cant_read.length > 0 puts <<-EOS.undent Some folders in #{locale} aren't writable. This can happen if you "sudo make install" software that isn't managed |
