mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Avoid infinite loop in ChannelVideo's to_xml/to_json methods
This commit is contained in:
parent
12b818a83c
commit
dee20f92a7
1 changed files with 4 additions and 12 deletions
|
@ -44,13 +44,9 @@ struct ChannelVideo
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_json(locale, json : JSON::Builder | Nil = nil)
|
def to_json(locale, _json : Nil = nil)
|
||||||
if json
|
JSON.build do |json|
|
||||||
to_json(locale, json)
|
to_json(locale, json)
|
||||||
else
|
|
||||||
JSON.build do |json|
|
|
||||||
to_json(locale, json)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -88,13 +84,9 @@ struct ChannelVideo
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_xml(locale, xml : XML::Builder | Nil = nil)
|
def to_xml(locale, _xml : Nil = nil)
|
||||||
if xml
|
XML.build do |xml|
|
||||||
to_xml(locale, xml)
|
to_xml(locale, xml)
|
||||||
else
|
|
||||||
XML.build do |xml|
|
|
||||||
to_xml(locale, xml)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue