From 4c6e1871b9fd4ab6932c9843e8031e365c31ef5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=A8Owen=20Rumney?= Date: Wed, 24 Feb 2021 12:19:20 +0000 Subject: [PATCH] update the the get file info --- commenter/commenter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commenter/commenter.go b/commenter/commenter.go index e8988e7..7370dd1 100644 --- a/commenter/commenter.go +++ b/commenter/commenter.go @@ -167,7 +167,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 } }