Ameba: Fix Lint/RedundantStringCoercion

This commit is contained in:
syeopite 2024-07-26 19:20:06 -07:00
parent f66068976e
commit d1cd790388
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

View File

@ -109,7 +109,7 @@ module Invidious::JSONify::APIv1
# On livestreams, it's not present, so always fall back to the # On livestreams, it's not present, so always fall back to the
# current unix timestamp (up to mS precision) for compatibility. # current unix timestamp (up to mS precision) for compatibility.
last_modified = fmt["lastModified"]? last_modified = fmt["lastModified"]?
last_modified ||= "#{Time.utc.to_unix_ms.to_s}000" last_modified ||= "#{Time.utc.to_unix_ms}000"
json.field "lmt", last_modified json.field "lmt", last_modified
json.field "projectionType", fmt["projectionType"] json.field "projectionType", fmt["projectionType"]