Skip to content

Commit 350613c

Browse files
committed
allow comments on non-diff lines (#32257)
Signed-off-by: abhishek818 <[email protected]>
1 parent 81aec6d commit 350613c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/gitdiff/gitdiff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (d *DiffLine) GetHTMLDiffLineType() string {
118118

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

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

0 commit comments

Comments
 (0)