aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJosh Hagins2016-10-20 01:17:36 -0400
committerGitHub2016-10-20 01:17:36 -0400
commitfcd2f6b2715340c3eb3aebfaaf9a4df623317a09 (patch)
treef3a6e5d4f5dd2205d1f5fc6ab54b63402ea3d21c /Library/Homebrew
parentf79cb2ba307271645aaa6cc37fc3b4d3c16ebe62 (diff)
parent3bc2c2d087a27c1cb67c727afd8ad88ce97167b2 (diff)
downloadbrew-fcd2f6b2715340c3eb3aebfaaf9a4df623317a09.tar.bz2
Merge pull request #1332 from jawshooah/cask/list-no-init
hbc/cli/list: don't require Caskroom to be initialized
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/list.rb4
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