Make Formula#installed? more idiomatic
This commit is contained in:
parent
8000fb807f
commit
58440a2c5b
@ -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?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user