From 9d91ac3b8836a7f7afaf4d186ca885b2261c1872 Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Mon, 26 Aug 2024 20:17:45 +0000 Subject: [PATCH] Use snake case for all variables --- src/invidious/routes/api/v1/misc.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/invidious/routes/api/v1/misc.cr b/src/invidious/routes/api/v1/misc.cr index b34df446..bdc6c4cf 100644 --- a/src/invidious/routes/api/v1/misc.cr +++ b/src/invidious/routes/api/v1/misc.cr @@ -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)