diff --git a/app/config.go b/app/config.go index ed29b5a..f8d9282 100644 --- a/app/config.go +++ b/app/config.go @@ -107,7 +107,7 @@ func (cfg *Config) updateConfig(e fsnotify.Event) { for username := range cfg.Users { if updatedCfg.Users[username] == nil { log.WithField("user", username).Info("Removed User from configuration") - cfg.Users[username] = nil + delete(cfg.Users, username) } }