mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
fix off by one
This commit is contained in:
1 parent
6c60c3dde3
commit
ede68fd95d
1 file changed
+3
@@ -249,6 +249,9 @@ func extractAndInjectLineNumber(leak *manager.Leak, bundle *Bundle, repo *Repo)
|
||||
return
|
||||
}
|
||||
currLine = 0
|
||||
if !strings.HasSuffix(txt, diffLineSignature) {
|
||||
currLine = -1
|
||||
}
|
||||
}
|
||||
currLine++
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user