GH-29265: Fix errcheck errors in server/channels/app/platform/feature_flags.go (#29269)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Этот коммит содержится в:
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user