From 8d845148e3529f0a10230dc92dad5c63275a4535 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Wed, 20 Sep 2023 13:48:52 +0800 Subject: [PATCH] chore: slice loop replace --- utils/publicSettings/publicSettings.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/publicSettings/publicSettings.go b/utils/publicSettings/publicSettings.go index 3af0ecbcc..a2d930651 100644 --- a/utils/publicSettings/publicSettings.go +++ b/utils/publicSettings/publicSettings.go @@ -109,9 +109,7 @@ func GetAvailableLanguages() Languages { } // Need this to sort out languages alphabetically by language tag var codes []string - for _, languageTag := range i18n.LanguageTags() { - codes = append(codes, languageTag) - } + codes = append(codes, i18n.LanguageTags()...) languages = ParseLanguages(codes) return languages }