mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
fix(code): clean up EE-4432 (#7865)
This commit is contained in:
parent
367f3dd6d4
commit
ae2bec4bd9
21 changed files with 25 additions and 111 deletions
|
@ -251,12 +251,7 @@ func (handler *Handler) settingsUpdate(w http.ResponseWriter, r *http.Request) *
|
|||
func (handler *Handler) updateSnapshotInterval(settings *portainer.Settings, snapshotInterval string) error {
|
||||
settings.SnapshotInterval = snapshotInterval
|
||||
|
||||
err := handler.SnapshotService.SetSnapshotInterval(snapshotInterval)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return handler.SnapshotService.SetSnapshotInterval(snapshotInterval)
|
||||
}
|
||||
|
||||
func (handler *Handler) updateTLS(settings *portainer.Settings) *httperror.HandlerError {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue