Prefer Dir[] to Dir.glob when not passing a block

This commit is contained in:
Jack Nagel 2014-05-30 12:38:30 -05:00
parent 6c3c5b0a84
commit c6c7623591

View File

@ -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