unify code style

pull/10616/head
zhulongcheng 2018-11-21 14:11:48 +08:00 committed by Mark Rushakoff
parent 19dd22fcfa
commit 8984490ace
1 changed files with 3 additions and 3 deletions

View File

@ -819,9 +819,9 @@ func (t TaskService) FindTasks(ctx context.Context, filter platform.TaskFilter)
return nil, 0, err return nil, 0, err
} }
tasks := make([]*platform.Task, 0, len(tr.Tasks)) tasks := make([]*platform.Task, len(tr.Tasks))
for _, t := range tr.Tasks { for i, _ := range tr.Tasks {
tasks = append(tasks, &t.Task) tasks[i] = &tr.Tasks[i].Task
} }
return tasks, len(tasks), nil return tasks, len(tasks), nil
} }