mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-09 15:02:14 +05:30
Remove unecessary if condition in videos.cr
This commit is contained in:
parent
6251d8d43f
commit
5f2b43d653
@ -152,9 +152,7 @@ module Invidious::Channel::Tabs
|
|||||||
# -------------------
|
# -------------------
|
||||||
|
|
||||||
def get_livestreams(channel : AboutChannel, continuation : String? = nil, sort_by = "newest")
|
def get_livestreams(channel : AboutChannel, continuation : String? = nil, sort_by = "newest")
|
||||||
if continuation.nil?
|
|
||||||
continuation ||= make_initial_content_ctoken(channel.ucid, "livestreams", sort_by)
|
continuation ||= make_initial_content_ctoken(channel.ucid, "livestreams", sort_by)
|
||||||
end
|
|
||||||
|
|
||||||
initial_data = YoutubeAPI.browse(continuation: continuation)
|
initial_data = YoutubeAPI.browse(continuation: continuation)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user