aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-01-14 22:32:39 -0600
committerJack Nagel2013-01-17 21:30:23 -0600
commitc1d2bbda6ab5a7fb6f60cf87a16d2778c45450f9 (patch)
tree51a83df7464dd12324e41e48a6ebc92d58da01ff
parentc6292b72924ec66fe5438beffbbd743c88e27288 (diff)
downloadhomebrew-c1d2bbda6ab5a7fb6f60cf87a16d2778c45450f9.tar.bz2
Make Formula#installed? more idiomatic
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 59c1d104a..b7256ff0f 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -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?