diff options
| author | Jack Nagel | 2014-05-30 12:38:30 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-30 12:41:12 -0500 |
| commit | c6c7623591956491c20ae57342f322979aaf87cb (patch) | |
| tree | 582c875f51abdbbfc74fefb881c9ecd0fed316b7 /Library | |
| parent | 6c3c5b0a8432bb3d5381ca4bb45bab197af481a2 (diff) | |
| download | brew-c6c7623591956491c20ae57342f322979aaf87cb.tar.bz2 | |
Prefer Dir[] to Dir.glob when not passing a block
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/keg.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 333b66ee4..f5d9117c8 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -153,7 +153,7 @@ class Keg < Pathname end def plist_installed? - not Dir.glob("#{self}/*.plist").empty? + Dir["#{self}/*.plist"].any? end def python_site_packages_installed? @@ -161,7 +161,7 @@ class Keg < Pathname end def app_installed? - not Dir.glob("#{self}/{,libexec/}*.app").empty? + Dir["#{self}/{,libexec/}*.app"].any? end def version |
