diff options
Diffstat (limited to 'models/migrations/v130.go')
-rw-r--r-- | models/migrations/v130.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/migrations/v130.go b/models/migrations/v130.go index 4f044e26ab..08a8d5fca1 100644 --- a/models/migrations/v130.go +++ b/models/migrations/v130.go @@ -12,7 +12,6 @@ import ( ) func expandWebhooks(x *xorm.Engine) error { - type HookEvents struct { Create bool `json:"create"` Delete bool `json:"delete"` @@ -57,7 +56,7 @@ func expandWebhooks(x *xorm.Engine) error { if err := sess.Begin(); err != nil { return err } - var results = make([]Webhook, 0, batchSize) + results := make([]Webhook, 0, batchSize) err := x.OrderBy("id"). Limit(batchSize, last). Find(&results) |