Merge pull request #1332 from jawshooah/cask/list-no-init

hbc/cli/list: don't require Caskroom to be initialized
This commit is contained in:
Josh Hagins 2016-10-20 01:17:36 -04:00 committed by GitHub
commit fcd2f6b271

View File

@ -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
@ -83,7 +83,7 @@ module Hbc
end
def self.needs_init?
true
false
end
end
end