From f495623b2a16e1d6048a04d0ef8bb6a32dc9a8ed Mon Sep 17 00:00:00 2001 From: Christian Claus Date: Mon, 23 Apr 2018 21:27:16 +0200 Subject: [PATCH] Fix npe in config update --- app/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }