Remove unnecessary code

This commit is contained in:
Lunny Xiao
2025-07-22 22:28:24 -07:00
parent 5192300421
commit 5bb19fd8ea

View File

@@ -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
}