mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 05:52:43 +00:00
Remove redudant issue LoadAttributes() calls (#2614)
This commit is contained in:
parent
339d7de409
commit
cc84ca40d7
2 changed files with 1 additions and 12 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue