diff options
| author | Josh Hagins | 2016-10-20 01:17:36 -0400 |
|---|---|---|
| committer | GitHub | 2016-10-20 01:17:36 -0400 |
| commit | fcd2f6b2715340c3eb3aebfaaf9a4df623317a09 (patch) | |
| tree | f3a6e5d4f5dd2205d1f5fc6ab54b63402ea3d21c | |
| parent | f79cb2ba307271645aaa6cc37fc3b4d3c16ebe62 (diff) | |
| parent | 3bc2c2d087a27c1cb67c727afd8ad88ce97167b2 (diff) | |
| download | brew-fcd2f6b2715340c3eb3aebfaaf9a4df623317a09.tar.bz2 | |
Merge pull request #1332 from jawshooah/cask/list-no-init
hbc/cli/list: don't require Caskroom to be initialized
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/list.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/list.rb b/Library/Homebrew/cask/lib/hbc/cli/list.rb index 330c81b90..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 @@ -83,7 +83,7 @@ module Hbc end def self.needs_init? - true + false end end end |
