formatDuplicatePathsWithTitles formats task file paths and titles as a bulleted list.
(tasks []*model.Task)
| 66 | |
| 67 | // formatDuplicatePathsWithTitles formats task file paths and titles as a bulleted list. |
| 68 | func formatDuplicatePathsWithTitles(tasks []*model.Task) string { |
| 69 | lines := make([]string, len(tasks)) |
| 70 | for i, t := range tasks { |
| 71 | lines[i] = fmt.Sprintf(" - %s (%s)", t.FilePath, t.Title) |
| 72 | } |
| 73 | return strings.Join(lines, "\n") |
| 74 | } |
no outgoing calls