Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
update the the get file info
Browse files Browse the repository at this point in the history
  • Loading branch information
owenrumney-f3 committed Feb 24, 2021
1 parent c4d900a commit 4c6e187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commenter/commenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 4c6e187

Please sign in to comment.