Use snake case for all variables

This commit is contained in:
Samantaz Fox 2024-08-26 20:17:45 +00:00 committed by GitHub
parent 5f590dda80
commit 9d91ac3b88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,8 +42,8 @@ module Invidious::Routes::API::V1::Misc
format = env.params.query["format"]?
format ||= "json"
listenParam = env.params.query["listen"]?
listen = (listenParam == "true" || listenParam == "1")
listen_param = env.params.query["listen"]?
listen = (listen_param == "true" || listen_param == "1")
if plid.starts_with? "RD"
return env.redirect "/api/v1/mixes/#{plid}"
@ -114,8 +114,8 @@ module Invidious::Routes::API::V1::Misc
format = env.params.query["format"]?
format ||= "json"
listenParam = env.params.query["listen"]?
listen = (listenParam == "true" || listenParam == "1")
listen_param = env.params.query["listen"]?
listen = (listen_param == "true" || listen_param == "1")
begin
mix = fetch_mix(rdid, continuation, locale: locale)