fix(errors): correct typo in string method name
Some checks are pending
Build and release container directly from master / release (push) Waiting to run
Invidious CI / build - crystal: 1.10.1, stable: true (push) Waiting to run
Invidious CI / build - crystal: 1.11.2, stable: true (push) Waiting to run
Invidious CI / build - crystal: 1.12.1, stable: true (push) Waiting to run
Invidious CI / build - crystal: 1.9.2, stable: true (push) Waiting to run
Invidious CI / build - crystal: nightly, stable: false (push) Waiting to run
Invidious CI / build-docker (push) Waiting to run
Invidious CI / build-docker-arm64 (push) Waiting to run
Invidious CI / ameba_lint (push) Waiting to run

Corrected the method name from `startswith?` to `starts_with?` in the error redirect helper. This change ensures proper redirection functionality and prevents potential runtime errors due to incorrect method calls.
This commit is contained in:
Kumi 2024-09-18 15:08:35 +02:00
parent 9d9a2d40e9
commit 4d2b8e9d15
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -180,7 +180,7 @@ def error_redirect_helper(env : HTTP::Server::Context)
go_to_youtube = translate(locale, "next_steps_error_message_go_to_youtube")
switch_instance = translate(locale, "Switch Invidious Instance")
if request_path.startswith?("/watch") && CONFIG.alltube_url
if request_path.starts_with?("/watch") && CONFIG.alltube_url
go_to_alltube = translate(locale, "next_steps_error_message_go_to_alltube")
alltube_part = <<-END_HTML
<li>