From ec14814bd33f6bb79343a0b5fb58f2a4ff362b5c Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Tue, 20 Apr 2021 14:56:44 +0100 Subject: [PATCH] Update commenter.go --- commenter/commenter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commenter/commenter.go b/commenter/commenter.go index e310723..3ac09cb 100644 --- a/commenter/commenter.go +++ b/commenter/commenter.go @@ -182,7 +182,7 @@ func (c *Commenter) checkCommentRelevant(filename string, line int) bool { func (c *Commenter) getFileInfo(file string, line int) (*commitFileInfo, error) { for _, info := range c.files { if info.FileName == file { - if line >= info.hunkStart && line < info.hunkEnd { + if line >= info.hunkStart && line <= info.hunkEnd { return info, nil } }