mirror of
https://github.com/iv-org/invidious.git
synced 2026-01-28 15:58:30 -06:00
Fix Lint/RequireParentheses type of Ameba issues
This commit is contained in:
parent
31d218c03e
commit
ee85274b8d
@ -138,7 +138,7 @@ module Invidious::JSONify::APIv1
|
||||
|
||||
if fmt_info = Invidious::Videos::Formats.itag_to_metadata?(fmt["itag"])
|
||||
json.field "container", fmt_info["ext"]
|
||||
json.field "encoding", fmt_info["vcodec"]? || fmt_info["acodec"]
|
||||
json.field "encoding", (fmt_info["vcodec"]? || fmt_info["acodec"])
|
||||
end
|
||||
|
||||
# Livestream chunk infos
|
||||
@ -199,7 +199,7 @@ module Invidious::JSONify::APIv1
|
||||
|
||||
if fmt_info = Invidious::Videos::Formats.itag_to_metadata?(fmt["itag"])
|
||||
json.field "container", fmt_info["ext"]
|
||||
json.field "encoding", fmt_info["vcodec"]? || fmt_info["acodec"]
|
||||
json.field "encoding", (fmt_info["vcodec"]? || fmt_info["acodec"])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user