Fix lint
This commit is contained in:
parent
cc1bb3083f
commit
9000f2c3cd
1 changed files with 3 additions and 3 deletions
|
@ -186,7 +186,7 @@ func exportListsAndTasks(s *xorm.Session, u *user.User, wr *zip.Writer) (err err
|
||||||
Task: *t,
|
Task: *t,
|
||||||
}
|
}
|
||||||
if _, exists := listMap[t.ListID]; !exists {
|
if _, exists := listMap[t.ListID]; !exists {
|
||||||
log.Debugf("[User Data Export] List %d does not exist for task %d, ommitting", t.ListID, t.ID)
|
log.Debugf("[User Data Export] List %d does not exist for task %d, omitting", t.ListID, t.ID)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
listMap[t.ListID].Tasks = append(listMap[t.ListID].Tasks, taskMap[t.ID])
|
listMap[t.ListID].Tasks = append(listMap[t.ListID].Tasks, taskMap[t.ID])
|
||||||
|
@ -203,7 +203,7 @@ func exportListsAndTasks(s *xorm.Session, u *user.User, wr *zip.Writer) (err err
|
||||||
|
|
||||||
for _, c := range comments {
|
for _, c := range comments {
|
||||||
if _, exists := taskMap[c.TaskID]; !exists {
|
if _, exists := taskMap[c.TaskID]; !exists {
|
||||||
log.Debugf("[User Data Export] Task %d does not exist for comment %d, ommitting", c.TaskID, c.ID)
|
log.Debugf("[User Data Export] Task %d does not exist for comment %d, omitting", c.TaskID, c.ID)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
taskMap[c.TaskID].Comments = append(taskMap[c.TaskID].Comments, c)
|
taskMap[c.TaskID].Comments = append(taskMap[c.TaskID].Comments, c)
|
||||||
|
@ -217,7 +217,7 @@ func exportListsAndTasks(s *xorm.Session, u *user.User, wr *zip.Writer) (err err
|
||||||
|
|
||||||
for _, b := range buckets {
|
for _, b := range buckets {
|
||||||
if _, exists := listMap[b.ListID]; !exists {
|
if _, exists := listMap[b.ListID]; !exists {
|
||||||
log.Debugf("[User Data Export] List %d does not exist for bucket %d, ommitting", b.ListID, b.ID)
|
log.Debugf("[User Data Export] List %d does not exist for bucket %d, omitting", b.ListID, b.ID)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
listMap[b.ListID].Buckets = append(listMap[b.ListID].Buckets, b)
|
listMap[b.ListID].Buckets = append(listMap[b.ListID].Buckets, b)
|
||||||
|
|
Loading…
Reference in a new issue