mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-27 22:27:28 +00:00
Remove unnecessary code
This commit is contained in:
@@ -1007,7 +1007,6 @@ type FindCommentsOptions struct {
|
||||
RepoID int64
|
||||
IssueID int64
|
||||
ReviewID int64
|
||||
CommitSHA string
|
||||
Since int64
|
||||
Before int64
|
||||
Line int64
|
||||
@@ -1053,9 +1052,6 @@ func (opts FindCommentsOptions) ToConds() builder.Cond {
|
||||
if opts.IsPull.Has() {
|
||||
cond = cond.And(builder.Eq{"issue.is_pull": opts.IsPull.Value()})
|
||||
}
|
||||
if opts.CommitSHA != "" {
|
||||
cond = cond.And(builder.Eq{"comment.commit_sha": opts.CommitSHA})
|
||||
}
|
||||
return cond
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user