1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-30 10:11:23 +02:00

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 {
v := map[string]bool{}
for _, ss := range s {
if ss == "" {
continue
}
v[ss] = true
}
return v