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

Commit

Permalink
Update commenter.go
Browse files Browse the repository at this point in the history
  • Loading branch information
owenrumney authored Apr 20, 2021
1 parent 9a533ca commit ec14814
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 @@ -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
}
}
Expand Down

0 comments on commit ec14814

Please sign in to comment.