Skip to content

Commit 5bb19fd

Browse files
committed
Remove unnecessary code
1 parent 5192300 commit 5bb19fd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

models/issues/comment.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,6 @@ type FindCommentsOptions struct {
10071007
RepoID int64
10081008
IssueID int64
10091009
ReviewID int64
1010-
CommitSHA string
10111010
Since int64
10121011
Before int64
10131012
Line int64
@@ -1053,9 +1052,6 @@ func (opts FindCommentsOptions) ToConds() builder.Cond {
10531052
if opts.IsPull.Has() {
10541053
cond = cond.And(builder.Eq{"issue.is_pull": opts.IsPull.Value()})
10551054
}
1056-
if opts.CommitSHA != "" {
1057-
cond = cond.And(builder.Eq{"comment.commit_sha": opts.CommitSHA})
1058-
}
10591055
return cond
10601056
}
10611057

0 commit comments

Comments
 (0)