Fix npe in config update

This commit is contained in:
Christian Claus 2018-04-23 21:27:16 +02:00
parent 32fcc094b3
commit f495623b2a

View file

@ -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)
}
}