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

Commit

Permalink
Merge pull request #6 from owenrumney/fix-get-file-info
Browse files Browse the repository at this point in the history
update the the get file info
  • Loading branch information
owenrumney authored Feb 24, 2021
2 parents c4d900a + 4c6e187 commit f4be1e5
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 f4be1e5

Please sign in to comment.