From e79036d42fdcee38beba690d39e63ff046c228fb Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Wed, 29 May 2024 23:06:47 +0800 Subject: [PATCH] Revert "[ci skip] Try to decrease complexity" This reverts commit 39e94c6ea79d16c78fc23c04700c8595a241085d. --- src/main/java/fr/xephi/authme/util/message/I18NUtils.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/fr/xephi/authme/util/message/I18NUtils.java b/src/main/java/fr/xephi/authme/util/message/I18NUtils.java index 77ac4d7c..f7be5981 100644 --- a/src/main/java/fr/xephi/authme/util/message/I18NUtils.java +++ b/src/main/java/fr/xephi/authme/util/message/I18NUtils.java @@ -91,15 +91,11 @@ public class I18NUtils { // return "zhmc"; } - // Match locale code with "_" - return matchLocale(locale, settings); - } - - private static String matchLocale(String locale, Settings settings) { if (locale.contains("_")) { locale = locale.substring(0, locale.indexOf("_")); } + // Match locale code with "_" if (LOCALE_LIST.contains(locale)) { return locale; }