mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 10:48:37 +00:00
Remove redudant issue LoadAttributes() calls (#2614)
This commit is contained in:
@@ -984,12 +984,7 @@ func GetIssueByRef(ref string) (*Issue, error) {
|
||||
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.
|
||||
|
Reference in New Issue
Block a user