[NO-TICKET] Remove unused function attributes (#16878)

Этот коммит содержится в:
Atanas Alexandrov
2021-02-08 10:11:07 +01:00
коммит произвёл GitHub
родитель 4a60cdaf4f
Коммит cda69d4dd7
4 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@@ -101,7 +101,7 @@ func GetUserTranslations(locale string) i18n.TranslateFunc {
return translations
}
func GetTranslationsAndLocale(w http.ResponseWriter, r *http.Request) (i18n.TranslateFunc, string) {
func GetTranslationsAndLocale(r *http.Request) (i18n.TranslateFunc, string) {
// This is for checking against locales like pt_BR or zn_CN
headerLocaleFull := strings.Split(r.Header.Get("Accept-Language"), ",")[0]
// This is for checking against locales like en, es