stop loading Cask#to_h from api
This commit is contained in:
parent
7c15dce285
commit
39dd7e987d
@ -298,11 +298,6 @@ module Cask
|
||||
alias == eql?
|
||||
|
||||
def to_h
|
||||
if loaded_from_api && !Homebrew::EnvConfig.no_install_from_api?
|
||||
json_cask = Homebrew::API::Cask.all_casks[token]
|
||||
return api_to_local_hash(Homebrew::API.merge_variations(json_cask))
|
||||
end
|
||||
|
||||
url_specs = url&.specs.dup
|
||||
case url_specs&.dig(:user_agent)
|
||||
when :default
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user