aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/info.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/info.rb')
-rw-r--r--Library/Homebrew/cmd/info.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index 265abbec9..2c6ce7c4a 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -96,8 +96,7 @@ module Homebrew extend self
Homebrew.dump_options_for_formula f
end
- the_caveats = (f.caveats || "").strip
- unless the_caveats.empty?
+ unless f.caveats.to_s.strip.empty?
ohai "Caveats"
puts f.caveats
end