mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-31 14:16:27 +00:00
Fix Style/IsAFilter issues
This commit is contained in:
@@ -29,7 +29,7 @@ module Invidious::Routes::Channels
|
||||
item.author
|
||||
end
|
||||
end
|
||||
items = items.select(&.is_a?(SearchPlaylist)).map(&.as(SearchPlaylist))
|
||||
items = items.select(SearchPlaylist).map(&.as(SearchPlaylist))
|
||||
items.each(&.author=(""))
|
||||
else
|
||||
sort_options = {"newest", "oldest", "popular"}
|
||||
@@ -57,7 +57,7 @@ module Invidious::Routes::Channels
|
||||
end
|
||||
|
||||
items, continuation = fetch_channel_playlists(channel.ucid, channel.author, continuation, sort_by)
|
||||
items = items.select { |item| item.is_a?(SearchPlaylist) }.map { |item| item.as(SearchPlaylist) }
|
||||
items = items.select(SearchPlaylist).map { |item| item.as(SearchPlaylist) }
|
||||
items.each(&.author=(""))
|
||||
|
||||
templated "playlists"
|
||||
|
||||
Reference in New Issue
Block a user