mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-22 15:18:43 +00:00
parent
1b380ff4b4
commit
f3420716ab
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ func setupEvilGlobals(c *cli.Context, v store.Store, f forge.Forge) error {
|
||||||
|
|
||||||
// Execution
|
// Execution
|
||||||
_events := c.StringSlice("default-cancel-previous-pipeline-events")
|
_events := c.StringSlice("default-cancel-previous-pipeline-events")
|
||||||
events := make([]model.WebhookEvent, len(_events), 0)
|
events := make([]model.WebhookEvent, 0, len(_events))
|
||||||
for _, v := range _events {
|
for _, v := range _events {
|
||||||
events = append(events, model.WebhookEvent(v))
|
events = append(events, model.WebhookEvent(v))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue