serialized_yt_data: force datatype of 'locale'

This commit is contained in:
Samantaz Fox 2021-10-07 22:53:00 +02:00
parent f65b628bf3
commit 1cb715ac9f
No known key found for this signature in database
GPG key ID: F42821059186176E

View file

@ -211,7 +211,7 @@ struct SearchChannel
end end
end end
def to_json(locale, _json : Nil) def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
JSON.build do |json| JSON.build do |json|
to_json(locale, json) to_json(locale, json)
end end