Skip to content

Commit

Permalink
fix off by one
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav committed Sep 2, 2020
1 parent 6c60c3d commit ede68fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scan/rule.go
Expand Up @@ -249,6 +249,9 @@ func extractAndInjectLineNumber(leak *manager.Leak, bundle *Bundle, repo *Repo)
return
}
currLine = 0
if !strings.HasSuffix(txt, diffLineSignature) {
currLine = -1
}
}
currLine++
}
Expand Down

0 comments on commit ede68fd

Please sign in to comment.