Fix cask loading from the API

Co-authored-by: Kevin <apainintheneck@gmail.com>
This commit is contained in:
Rylan Polster 2023-12-16 20:08:26 -05:00
parent c5f33aaf99
commit 472dd95b16
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -293,7 +293,7 @@ module Cask
if (disable_date = json_cask[:disable_date].presence)
reason = DeprecateDisable.to_reason_string_or_symbol json_cask[:disable_reason], type: :cask
deprecate! date: disable_date, because: reason
disable! date: disable_date, because: reason
end
auto_updates json_cask[:auto_updates] unless json_cask[:auto_updates].nil?