mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +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
|
return
|
||||||
}
|
}
|
||||||
currLine = 0
|
currLine = 0
|
||||||
|
if !strings.HasSuffix(txt, diffLineSignature) {
|
||||||
|
currLine = -1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
currLine++
|
currLine++
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user