From 4656c20317738a7e4b364d4f3e5ff0e46306194e 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 2cb8bc9a..cd658f34 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