Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Samantaz Fox <[email protected]>
  • Loading branch information
ChunkyProgrammer and SamantazFox authored Sep 26, 2023
1 parent bb04bcc commit ea8539b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/invidious/routes/api/v1/misc.cr
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ module Invidious::Routes::API::V1::Misc
end
JSON.build do |json|
json.object do
json.field "ucid", sub_endpoint["browseId"].try &.as_s if sub_endpoint["browseId"]?
json.field "videoId", sub_endpoint["videoId"].try &.as_s if sub_endpoint["videoId"]?
json.field "ucid", sub_endpoint["browseId"].as_s if sub_endpoint["browseId"]?
json.field "videoId", sub_endpoint["videoId"].as_s if sub_endpoint["videoId"]?
json.field "params", params.try &.as_s
json.field "pageType", pageType
end
Expand Down

0 comments on commit ea8539b

Please sign in to comment.