aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_installer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
-rw-r--r--Library/Homebrew/formula_installer.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index bd341c365..8f4f1b799 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -141,8 +141,7 @@ class FormulaInstaller
end
def caveats
- the_caveats = (f.caveats || "").strip
- unless the_caveats.empty?
+ unless f.caveats.to_s.strip.empty?
ohai "Caveats", f.caveats
@show_summary_heading = true
end