fix off by one

This commit is contained in:
zricethezav committed 2020-09-02 08:36:19 -04:00
1 parent 6c60c3dde3
commit ede68fd95d
1 file changed
+3
+3
View File
@@ -249,6 +249,9 @@ func extractAndInjectLineNumber(leak *manager.Leak, bundle *Bundle, repo *Repo)
return
}
currLine = 0
if !strings.HasSuffix(txt, diffLineSignature) {
currLine = -1
}
}
currLine++
}