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

@ -216,7 +216,7 @@ func duplicateTasks(s *xorm.Session, doer web.Auth, ld *ListDuplicate, bucketMap
// It is used to map old task items to new ones.
taskMap := make(map[int64]int64)
// Create + update all tasks (includes reminders)
oldTaskIDs := make([]int64, len(tasks))
oldTaskIDs := make([]int64, 0, len(tasks))
for _, t := range tasks {
oldID := t.ID
t.ID = 0