hbc/cli/list: don't print empty line if nothing to list
This commit is contained in:
parent
32f2231cdf
commit
3bc2c2d087
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user