mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-22 16:36:30 +00:00
ignore empty orgs value
This commit is contained in:
parent
ef6658ba20
commit
dd6540692b
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue