You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-06-03 16:35:37 +02:00
ignore empty orgs value
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user