diff options
author | Morlinest <Morlinest@users.noreply.github.com> | 2017-09-27 14:41:52 +0200 |
---|---|---|
committer | Andrey Nering <andrey.nering@gmail.com> | 2017-09-27 09:41:52 -0300 |
commit | cc84ca40d787d853186af6c16d328daa37d543da (patch) | |
tree | 92b77e428421f2c2ba734fca2efc201db1899e10 /models | |
parent | 339d7de409fae0502f970e1ddd73c2a046236407 (diff) | |
download | gitea-cc84ca40d787d853186af6c16d328daa37d543da.tar.gz gitea-cc84ca40d787d853186af6c16d328daa37d543da.zip |
Remove redudant issue LoadAttributes() calls (#2614)
Diffstat (limited to 'models')
-rw-r--r-- | models/issue.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/models/issue.go b/models/issue.go index 7884507a27..0c68275d41 100644 --- a/models/issue.go +++ b/models/issue.go @@ -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. |