feat: upgrade golangci-lint to 1.45.2

This commit is contained in:
kolaente 2022-03-27 16:55:37 +02:00
parent 09c0d14444
commit 5cf263a86f
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
20 changed files with 77 additions and 59 deletions

View file

@ -402,7 +402,7 @@ func getRawTasksForLists(s *xorm.Session, lists []*List, a web.Auth, opts *taskO
return nil, 0, 0, err
}
userListIDs := make([]int64, len(userLists))
userListIDs := make([]int64, 0, len(userLists))
for _, l := range userLists {
userListIDs = append(userListIDs, l.ID)
}