diff options
Diffstat (limited to 'models/migrations/v136.go')
-rw-r--r-- | models/migrations/v136.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v136.go b/models/migrations/v136.go index 2203f15386..101cf75955 100644 --- a/models/migrations/v136.go +++ b/models/migrations/v136.go @@ -65,7 +65,7 @@ func addCommitDivergenceToPulls(x *xorm.Engine) error { if err := sess.Begin(); err != nil { return err } - var results = make([]*PullRequest, 0, batchSize) + results := make([]*PullRequest, 0, batchSize) err := sess.Where("has_merged = ?", false).OrderBy("id").Limit(batchSize, last).Find(&results) if err != nil { return err |