aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 852e85b80..c104a743b 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -221,8 +221,7 @@ class Formula
# rarely, you don't want your library symlinked into the main prefix
# see gettext.rb for an example
def keg_only?
- kor = self.class.keg_only_reason
- not kor.nil? and kor.valid?
+ keg_only_reason && keg_only_reason.valid?
end
def keg_only_reason