Skip to content

Commit

Permalink
Simplify creation of empty json array
Browse files Browse the repository at this point in the history
Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
  • Loading branch information
ChunkyProgrammer and SamantazFox committed Mar 8, 2024
1 parent b6e1180 commit dc0e9f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/invidious/channels/community.cr
Expand Up @@ -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
Expand Down

0 comments on commit dc0e9f8

Please sign in to comment.