diff --git a/Library/Homebrew/cask/lib/hbc/cli/list.rb b/Library/Homebrew/cask/lib/hbc/cli/list.rb index 4557515f41..4094b3d38c 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