Fix npe in config update
This commit is contained in:
parent
32fcc094b3
commit
f495623b2a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue