aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-01-14 22:32:39 -0600
committerJack Nagel2013-01-17 21:30:23 -0600
commit58440a2c5b8f34c043a091610729d7986588e402 (patch)
treedfafda0b6a1f26befb2112e07ea3d99f82981d26 /Library
parent8000fb807feccb3019536468a75dfecb1d2dcee9 (diff)
downloadbrew-58440a2c5b8f34c043a091610729d7986588e402.tar.bz2
Make Formula#installed? more idiomatic
Diffstat (limited to 'Library')
-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?