diff options
author | Unknwon <u@gogs.io> | 2015-11-13 10:05:50 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-13 10:05:50 -0500 |
commit | a6c7716742943aa492545716b629a566c4d923de (patch) | |
tree | 61e44d5fd4fa4dddcb8001c89723e445c4c08136 /models/action.go | |
parent | 1c3754bcec37fe448bc46dfd5abd944e86f951b7 (diff) | |
download | gitea-a6c7716742943aa492545716b629a566c4d923de.tar.gz gitea-a6c7716742943aa492545716b629a566c4d923de.zip |
minor fix for #1935 and fix #1854
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/action.go b/models/action.go index 19fd9102fb..c514a4c47d 100644 --- a/models/action.go +++ b/models/action.go @@ -14,8 +14,8 @@ import ( "time" "unicode" - "github.com/go-xorm/xorm" "github.com/Unknwon/com" + "github.com/go-xorm/xorm" api "github.com/gogits/go-gogs-client" @@ -138,10 +138,10 @@ func (a Action) GetIssueInfos() []string { } func (a Action) GetIssueTitle() string { - issueIndex := com.StrTo(a.GetIssueInfos()[0]).MustInt64() - issue, err := GetIssueByIndex(a.RepoID, issueIndex) + index := com.StrTo(a.GetIssueInfos()[0]).MustInt64() + issue, err := GetIssueByIndex(a.RepoID, index) if err != nil { - log.Error(4, "GetIssueByID: %v", err) + log.Error(4, "GetIssueByIndex: %v", err) return "500 when get title" } return issue.Name |