diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-21 13:39:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 13:39:32 +0800 |
commit | 5843038a0812cc133c1895b7410aeda7153e8708 (patch) | |
tree | 3515998242443e1a82217ee4702603819c5315c8 /internal/db/migrations/v16.go | |
parent | 958d8b6bb4c2da66859325695b91d871e567a4fa (diff) |
workflows: enable golangci-lint (#5998)
* Create golint.yml
* Update golint.yml
* Update golint.yml
* Fix errcheck
* Fix gosimple
* Fix staticcheck
Diffstat (limited to 'internal/db/migrations/v16.go')
-rw-r--r-- | internal/db/migrations/v16.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/migrations/v16.go b/internal/db/migrations/v16.go index f60f9d15..a17185e0 100644 --- a/internal/db/migrations/v16.go +++ b/internal/db/migrations/v16.go @@ -37,7 +37,7 @@ func updateRepositorySizes(x *xorm.Engine) (err error) { offset := 0 for { repos := make([]*Repository, 0, 10) - if err = x.Sql(fmt.Sprintf("SELECT * FROM `repository` ORDER BY id ASC LIMIT 10 OFFSET %d", offset)). + if err = x.SQL(fmt.Sprintf("SELECT * FROM `repository` ORDER BY id ASC LIMIT 10 OFFSET %d", offset)). Find(&repos); err != nil { return fmt.Errorf("select repos [offset: %d]: %v", offset, err) } |