Fix cask/upgrade_spec failure
This commit is contained in:
parent
79a2a2d420
commit
87025e33cf
@ -68,7 +68,7 @@ module Cask
|
|||||||
|
|
||||||
sig { params(json: String, ignore_invalid_keys: T::Boolean).returns(T.attached_class) }
|
sig { params(json: String, ignore_invalid_keys: T::Boolean).returns(T.attached_class) }
|
||||||
def self.from_json(json, ignore_invalid_keys: false)
|
def self.from_json(json, ignore_invalid_keys: false)
|
||||||
config = JSON.parse(json)
|
config = JSON.parse(json, symbolize_names: true)
|
||||||
|
|
||||||
new(
|
new(
|
||||||
default: config.fetch("default", {}),
|
default: config.fetch("default", {}),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user