ignore empty orgs value

This commit is contained in:
Brad Rydzewski 2017-05-30 17:43:34 +02:00
parent ef6658ba20
commit dd6540692b

View file

@ -32,6 +32,9 @@ func setupConfig(c *cli.Context) *model.Settings {
func sliceToMap2(s []string) map[string]bool { func sliceToMap2(s []string) map[string]bool {
v := map[string]bool{} v := map[string]bool{}
for _, ss := range s { for _, ss := range s {
if ss == "" {
continue
}
v[ss] = true v[ss] = true
} }
return v return v