diff options
| author | Josh Hagins | 2016-10-19 19:39:39 -0400 |
|---|---|---|
| committer | Josh Hagins | 2016-10-19 22:15:03 -0400 |
| commit | 3bc2c2d087a27c1cb67c727afd8ad88ce97167b2 (patch) | |
| tree | f3a6e5d4f5dd2205d1f5fc6ab54b63402ea3d21c /Library | |
| parent | 32f2231cdf8a930f9c7366ee7ac7e0258a54fb9b (diff) | |
| download | brew-3bc2c2d087a27c1cb67c727afd8ad88ce97167b2.tar.bz2 | |
hbc/cli/list: don't print empty line if nothing to list
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/list.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/list.rb b/Library/Homebrew/cask/lib/hbc/cli/list.rb index 4557515f4..4094b3d38 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/list.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/list.rb @@ -67,7 +67,7 @@ module Hbc puts installed_casks.map(&:to_s) elsif @options[:versions] puts installed_casks.map(&method(:format_versioned)) - else + elsif !installed_casks.empty? puts Formatter.columns(installed_casks.map(&:to_s)) end |
