diff options
author | Unknwon <u@gogs.io> | 2017-06-27 20:39:59 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-06-27 20:39:59 -0400 |
commit | 13cca8a66abaeb6ff93dc4926b2517cf49b44bfa (patch) | |
tree | db14b7cc3de79101e1de02b07f63ca432278ba7c /models/comment.go | |
parent | 8ed2330d6e9be743b208bca4cd5a25269318040a (diff) |
models/comment: remove unused SQL parameter (#4586)
Diffstat (limited to 'models/comment.go')
-rw-r--r-- | models/comment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/comment.go b/models/comment.go index b31b4a84..1be559b0 100644 --- a/models/comment.go +++ b/models/comment.go @@ -437,7 +437,7 @@ func getCommentsByIssueIDSince(e Engine, issueID, since int64) ([]*Comment, erro func getCommentsByRepoIDSince(e Engine, repoID, since int64) ([]*Comment, error) { comments := make([]*Comment, 0, 10) - sess := e.Where("issue.repo_id = ?", repoID).Join("INNER", "issue", "issue.id = comment.issue_id", repoID).Asc("comment.created_unix") + sess := e.Where("issue.repo_id = ?", repoID).Join("INNER", "issue", "issue.id = comment.issue_id").Asc("comment.created_unix") if since > 0 { sess.And("comment.updated_unix >= ?", since) } |