From 2f898f7ddeb4fe2e5c1e9c72c74e6a5effc04212 Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 15 May 2024 22:59:55 +0600 Subject: [PATCH] utils/verifyLanguageCode: fix variable names --- src/modules/sub/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/sub/utils.js b/src/modules/sub/utils.js index c0c373b7..678eb70e 100644 --- a/src/modules/sub/utils.js +++ b/src/modules/sub/utils.js @@ -27,9 +27,9 @@ export function cleanString(string) { return string; } export function verifyLanguageCode(code) { - const code = String(code.slice(0, 2).toLowerCase()); + const langCode = String(code.slice(0, 2).toLowerCase()); if (RegExp(/[a-z]{2}/).test(code)) { - return code + return langCode } return "en" }