Add lint comment
This commit is contained in:
parent
b2092fe2f8
commit
3013c0c70f
|
@ -67,6 +67,7 @@ func (d *DiffLine) GetType() int {
|
|||
return int(d.Type)
|
||||
}
|
||||
|
||||
// CanComment returns whether or not a line can get commented
|
||||
func (d *DiffLine) CanComment() bool {
|
||||
return len(d.Comments) == 0 && d.Type != DiffLineSection
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user