aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJosh Hagins2016-10-19 19:39:39 -0400
committerJosh Hagins2016-10-19 22:15:03 -0400
commit3bc2c2d087a27c1cb67c727afd8ad88ce97167b2 (patch)
treef3a6e5d4f5dd2205d1f5fc6ab54b63402ea3d21c /Library
parent32f2231cdf8a930f9c7366ee7ac7e0258a54fb9b (diff)
downloadbrew-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.rb2
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