[MM-57743] Enable errcheck linter (#26723)

Этот коммит содержится в:
Ben Schumacher
2024-04-29 11:23:01 +02:00
коммит произвёл GitHub
родитель 5746bb8df3
Коммит 32d93fd469
9 изменённых файлов: 56 добавлений и 35 удалений

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

@@ -12,8 +12,8 @@ import (
"github.com/mattermost/mattermost/server/v8/channels/utils/fileutils"
)
// this functions loads translations from filesystem if they are not
// loaded already and assigns english while loading server config
// TranslationsPreInit loads translations from filesystem if they are not
// loaded already and assigns english while loading server config.
func TranslationsPreInit() error {
translationsDir := "i18n"
if mattermostPath := os.Getenv("MM_SERVER_PATH"); mattermostPath != "" {