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
|
||||
def installed?
|
||||
return installed_prefix.children.length > 0
|
||||
rescue
|
||||
return false
|
||||
installed_prefix.children.length > 0 rescue false
|
||||
end
|
||||
|
||||
def explicitly_requested?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user