Skip to content

Commit

Permalink
allow comments on non-diff lines (#32257)
Browse files Browse the repository at this point in the history
Signed-off-by: abhishek818 <[email protected]>
  • Loading branch information
abhishek818 committed Oct 14, 2024
1 parent 81aec6d commit 350613c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/gitdiff/gitdiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (d *DiffLine) GetHTMLDiffLineType() string {

// CanComment returns whether a line can get commented
func (d *DiffLine) CanComment() bool {
return len(d.Comments) == 0 && d.Type != DiffLineSection
return len(d.Comments) == 0
}

// GetCommentSide returns the comment side of the first comment, if not set returns empty string
Expand Down

0 comments on commit 350613c

Please sign in to comment.