From 5843038a0812cc133c1895b7410aeda7153e8708 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sat, 21 Mar 2020 13:39:32 +0800 Subject: workflows: enable golangci-lint (#5998) * Create golint.yml * Update golint.yml * Update golint.yml * Fix errcheck * Fix gosimple * Fix staticcheck --- internal/db/migrations/v16.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db/migrations/v16.go') 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) } -- cgit v1.2.3