From a08fafd852dfa64667a7c5c2d1070dd8fac38a06 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Mon, 13 Jan 2025 11:12:00 -0300 Subject: [PATCH] style: format code --- src/invidious/helpers/session_tokens.cr | 2 +- src/invidious/http_server/utils.cr | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/invidious/helpers/session_tokens.cr b/src/invidious/helpers/session_tokens.cr index cd5b1eb6..f75ed50b 100644 --- a/src/invidious/helpers/session_tokens.cr +++ b/src/invidious/helpers/session_tokens.cr @@ -10,7 +10,7 @@ module SessionTokens LOGGER.error("RefreshSessionTokens: Expected response to have status code 200 but got #{response.status_code} from #{CONFIG.tokens_server}") end json = JSON.parse(response.body) - @@po_token = json.try &.["potoken"].as_s || nil + @@po_token = json.try &.["potoken"].as_s || nil @@visitor_data = json.try &.["visitorData"].as_s || nil rescue ex LOGGER.error("RefreshSessionTokens: Failed to fetch tokens from #{CONFIG.tokens_server}: #{ex.message}") diff --git a/src/invidious/http_server/utils.cr b/src/invidious/http_server/utils.cr index 850bd2b0..9606e8ab 100644 --- a/src/invidious/http_server/utils.cr +++ b/src/invidious/http_server/utils.cr @@ -19,9 +19,9 @@ module Invidious::HttpServer LOGGER.debug("CheckExternalProxy: Proxy '#{proxy}' is not available") end end - if @@proxy_alive.empty? - LOGGER.warn("CheckExternalProxy: No proxies alive! Using own server proxy") - end + if @@proxy_alive.empty? + LOGGER.warn("CheckExternalProxy: No proxies alive! Using own server proxy") + end end def get_external_proxy