Add lint comment

This commit is contained in:
Jonas Franz 2018-07-06 19:54:04 +02:00
parent b2092fe2f8
commit 3013c0c70f
No known key found for this signature in database
GPG Key ID: 506AEEBE80BEDECD

View File

@ -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
}