search functions: Don't return result count

This is useless, as the items count can be directly acessed
using the '.size' method, so use that instead when needed.
This commit is contained in:
Samantaz Fox
2022-01-20 21:44:18 +01:00
parent 971b6ec96f
commit 84cc732281
7 changed files with 18 additions and 23 deletions

View File

@@ -254,7 +254,7 @@ module Invidious::Routes::API::V1::Channels
page = env.params.query["page"]?.try &.to_i?
page ||= 1
count, search_results = channel_search(query, page, ucid)
search_results = channel_search(query, page, ucid)
JSON.build do |json|
json.array do
search_results.each do |item|