mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
@@ -37,10 +37,10 @@ func Test_addIssueResourceIndexTable(t *testing.T) {
|
||||
MaxIndex int64 `xorm:"index"`
|
||||
}
|
||||
|
||||
var start = 0
|
||||
start := 0
|
||||
const batchSize = 1000
|
||||
for {
|
||||
var indexes = make([]ResourceIndex, 0, batchSize)
|
||||
indexes := make([]ResourceIndex, 0, batchSize)
|
||||
err := x.Table("issue_index").Limit(batchSize, start).Find(&indexes)
|
||||
assert.NoError(t, err)
|
||||
|
||||
|
Reference in New Issue
Block a user