From 58440a2c5b8f34c043a091610729d7986588e402 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 14 Jan 2013 22:32:39 -0600 Subject: [PATCH] Make Formula#installed? more idiomatic --- Library/Homebrew/formula.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 59c1d104a0..b7256ff0f5 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?