diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2021-10-07 22:50:32 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2021-10-28 17:48:07 +0200 |
| commit | f65b628bf36d51a46d7d4584004ccc6764c6669e (patch) | |
| tree | 7db75d82b38370c9af7002f98778046e5f4a654f | |
| parent | 60fa552469b5c1d39fd78a3e6a7f5aa133bd3fc7 (diff) | |
| download | invidious-f65b628bf36d51a46d7d4584004ccc6764c6669e.tar.gz invidious-f65b628bf36d51a46d7d4584004ccc6764c6669e.tar.bz2 invidious-f65b628bf36d51a46d7d4584004ccc6764c6669e.zip | |
serialized_yt_data: Remove default nil value in to_json
this will ensure that two parameters are passed and that it
doesn't collide with 'to_json(builder)'
| -rw-r--r-- | src/invidious/helpers/serialized_yt_data.cr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/invidious/helpers/serialized_yt_data.cr b/src/invidious/helpers/serialized_yt_data.cr index 0cac7c49..bc8fc946 100644 --- a/src/invidious/helpers/serialized_yt_data.cr +++ b/src/invidious/helpers/serialized_yt_data.cr @@ -95,7 +95,7 @@ struct SearchVideo end end - def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil = nil) + def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil) JSON.build do |json| to_json(locale, json) end @@ -159,7 +159,7 @@ struct SearchPlaylist end end - def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil = nil) + def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil) JSON.build do |json| to_json(locale, json) end @@ -211,7 +211,7 @@ struct SearchChannel end end - def to_json(locale, _json : Nil = nil) + def to_json(locale, _json : Nil) JSON.build do |json| to_json(locale, json) end @@ -245,7 +245,7 @@ class Category end end - def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil = nil) + def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil) JSON.build do |json| to_json(locale, json) end |
