From dd6540692b0fb9cd34431e4e30753dc77b96007f Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 30 May 2017 17:43:34 +0200 Subject: [PATCH] ignore empty orgs value --- router/middleware/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/router/middleware/config.go b/router/middleware/config.go index 67f798ecf..c90c9ac85 100644 --- a/router/middleware/config.go +++ b/router/middleware/config.go @@ -32,6 +32,9 @@ func setupConfig(c *cli.Context) *model.Settings { func sliceToMap2(s []string) map[string]bool { v := map[string]bool{} for _, ss := range s { + if ss == "" { + continue + } v[ss] = true } return v