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

Commit

Permalink
fix the is relevant check
Browse files Browse the repository at this point in the history
ensure the line is in the hunk
  • Loading branch information
owenrumney authored Nov 7, 2020
1 parent cda7430 commit 29a794a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (c *commenter) loadPr() error {
func (c *commenter) checkCommentRelevant(filename string, line int) bool {
for _, file := range c.files {
if file.FileName == filename {
if line > file.hunkStart && line < file.hunkEnd {
if line >= file.hunkStart && line < file.hunkEnd {
return true
}
}
Expand Down

0 comments on commit 29a794a

Please sign in to comment.