GH-29265: Fix errcheck errors in server/channels/app/platform/feature_flags.go (#29269)

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Этот коммит содержится в:
mas-who
2024-11-15 10:32:11 +02:00
коммит произвёл GitHub
родитель 8d1c42bc91
Коммит 3da77f2f05
2 изменённых файлов: 4 добавлений и 2 удалений

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

@@ -106,7 +106,6 @@ issues:
channels/app/platform/busy_test.go|\
channels/app/platform/cluster_handlers.go|\
channels/app/platform/config_test.go|\
channels/app/platform/feature_flags.go|\
channels/app/platform/helper_test.go|\
channels/app/platform/license.go|\
channels/app/platform/link_cache.go|\

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

@@ -46,7 +46,10 @@ func (ps *PlatformService) updateFeatureFlagValuesFromManagement() {
if oldFlags != newFlags {
ps.logger.Debug("Feature flag change detected, updating config")
*newCfg.FeatureFlags = newFlags
ps.SaveConfig(newCfg, true)
_, _, appErr := ps.SaveConfig(newCfg, true)
if appErr != nil {
ps.logger.Error("Failed to save config with updated feature flags", mlog.Err(appErr))
}
}
}