diff options
| author | Jack Nagel | 2012-07-18 03:27:42 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-07 15:33:29 -0500 |
| commit | c2725aa0484d5629e554ef9ad952e31a1d9b12ee (patch) | |
| tree | b8c8cded8a8e00a77048a869d745af2bcc7c51ef /Library/Homebrew/cmd/info.rb | |
| parent | 1d295ff3bc214e931646d1bddd477bfc89f20b73 (diff) | |
| download | brew-c2725aa0484d5629e554ef9ad952e31a1d9b12ee.tar.bz2 | |
Simplify conditional
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/info.rb')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 3 |
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 |
