[MM-57743] Enable errcheck linter (#26723)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5746bb8df3
Коммит
32d93fd469
@@ -104,14 +104,11 @@ func fixConfig(cfg *model.Config) {
|
||||
}
|
||||
}
|
||||
|
||||
FixInvalidLocales(cfg)
|
||||
fixInvalidLocales(cfg)
|
||||
}
|
||||
|
||||
// FixInvalidLocales checks and corrects the given config for invalid locale-related settings.
|
||||
//
|
||||
// Ideally, this function would be completely internal, but it's currently exposed to allow the cli
|
||||
// to test the config change before allowing the save.
|
||||
func FixInvalidLocales(cfg *model.Config) bool {
|
||||
// fixInvalidLocales checks and corrects the given config for invalid locale-related settings.
|
||||
func fixInvalidLocales(cfg *model.Config) bool {
|
||||
var changed bool
|
||||
|
||||
locales := i18n.GetSupportedLocales()
|
||||
|
||||
Ссылка в новой задаче
Block a user