Reduce block verbosity further

pull/2428/head
syeopite 2021-09-26 14:58:48 -07:00
rodzic b8f27a42a7
commit 17e481c107
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6FA616E5A5294A82
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -51,7 +51,7 @@ struct PlaylistVideo
if xml
to_xml(auto_generated, xml)
else
XML.build do |xml| # Why was this `json`?
XML.build do |xml|
to_xml(auto_generated, xml)
end
end

Wyświetl plik

@ -30,7 +30,7 @@ module Invidious::Routes::Channels
end
end
items = items.select(SearchPlaylist).map(&.as(SearchPlaylist))
items.each(&.author=(""))
items.each(&.author = "")
else
sort_options = {"newest", "oldest", "popular"}
sort_by ||= "newest"
@ -58,7 +58,7 @@ module Invidious::Routes::Channels
items, continuation = fetch_channel_playlists(channel.ucid, channel.author, continuation, sort_by)
items = items.select(SearchPlaylist).map(&.as(SearchPlaylist))
items.each(&.author=(""))
items.each(&.author = "")
templated "playlists"
end

Wyświetl plik

@ -236,7 +236,7 @@ def get_spys_proxies(country_code = "US")
proxies << {ip: ip, port: port, score: score}
end
proxies = proxies.sort_by { |proxy| proxy[:score] }.reverse!
proxies = proxies.sort_by!(&.[:score]).reverse!
return proxies
end