diff --git a/Library/Homebrew/api/cask.rb b/Library/Homebrew/api/cask.rb index aca14406a8..f0ed248cdf 100644 --- a/Library/Homebrew/api/cask.rb +++ b/Library/Homebrew/api/cask.rb @@ -18,8 +18,8 @@ module Homebrew sig { returns(Hash) } def all_casks @all_casks ||= begin - json_casks = Homebrew::API.fetch_json_api_file "cask.json", - target: HOMEBREW_CACHE_API/"cask.json" + json_casks = Homebrew::API.fetch_json_api_file "cask.json", + target: HOMEBREW_CACHE_API/"cask.json" json_casks.to_h do |json_cask| [json_cask["token"], json_cask.except("token")]