Make Formula#installed? more idiomatic

This commit is contained in:
Jack Nagel 2013-01-14 22:32:39 -06:00
parent 8000fb807f
commit 58440a2c5b

View File

@ -72,9 +72,7 @@ class Formula
# if the dir is there, but it's empty we consider it not installed # if the dir is there, but it's empty we consider it not installed
def installed? def installed?
return installed_prefix.children.length > 0 installed_prefix.children.length > 0 rescue false
rescue
return false
end end
def explicitly_requested? def explicitly_requested?