cmd/list: fix Cask listing

This commit is contained in:
Bo Anderson 2021-03-22 16:21:02 +00:00
parent a235b38000
commit 32d532fb49
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
2 changed files with 2 additions and 4 deletions

View File

@ -32,17 +32,16 @@ module Cask
one: args.public_send(:'1?'),
full_name: args.full_name?,
versions: args.versions?,
args: args,
)
end
def self.list_casks(*casks, args:, json: false, one: false, full_name: false, versions: false)
def self.list_casks(*casks, json: false, one: false, full_name: false, versions: false)
output = if casks.any?
casks.each do |cask|
raise CaskNotInstalledError, cask unless cask.installed?
end
else
Caskroom.casks(config: Config.from_args(args))
Caskroom.casks
end
if json

View File

@ -160,7 +160,6 @@ module Homebrew
one: args.public_send(:'1?'),
full_name: args.full_name?,
versions: args.versions?,
args: args,
)
end
end