From 7a4f2f116e348b365d9d10f4657e91f6c0af5d7b Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Thu, 15 Feb 2024 19:51:35 -0500 Subject: [PATCH] Simplify creation of empty json array Co-Authored-By: Samantaz Fox --- src/invidious/channels/community.cr | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/invidious/channels/community.cr b/src/invidious/channels/community.cr index 2cb8bc9a5..cd658f347 100644 --- a/src/invidious/channels/community.cr +++ b/src/invidious/channels/community.cr @@ -61,10 +61,7 @@ def extract_channel_community(items, *, ucid, locale, format, thin_mode, is_sing response = JSON.build do |json| json.object do json.field "authorId", ucid - json.field "comments" do - json.array do - end - end + json.field "comments", json.array { } end end return response