return nil, err
}
- issue, err := GetIssueByIndex(repo.ID, index)
- if err != nil {
- return nil, err
- }
-
- return issue, issue.LoadAttributes()
+ return GetIssueByIndex(repo.ID, index)
}
// GetRawIssueByIndex returns raw issue without loading attributes by index in a repository.
return
}
- err = models.IssueList(issues).LoadAttributes()
- if err != nil {
- ctx.Error(500, "LoadAttributes", err)
- return
- }
-
apiIssues := make([]*api.Issue, len(issues))
for i := range issues {
apiIssues[i] = issues[i].APIFormat()