diff options
| author | Jack Nagel | 2013-01-14 22:32:39 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-17 21:30:23 -0600 |
| commit | c1d2bbda6ab5a7fb6f60cf87a16d2778c45450f9 (patch) | |
| tree | 51a83df7464dd12324e41e48a6ebc92d58da01ff | |
| parent | c6292b72924ec66fe5438beffbbd743c88e27288 (diff) | |
| download | homebrew-c1d2bbda6ab5a7fb6f60cf87a16d2778c45450f9.tar.bz2 | |
Make Formula#installed? more idiomatic
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
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? |
