From 5bb19fd8ea2a509041143a6237a31550db9ae42b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 22 Jul 2025 22:28:24 -0700 Subject: [PATCH] Remove unnecessary code --- models/issues/comment.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/models/issues/comment.go b/models/issues/comment.go index 493ddf2fcf3..ab9fafa9f02 100644 --- a/models/issues/comment.go +++ b/models/issues/comment.go @@ -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 }