fixing issue #367 (#368)

This commit is contained in:
Steeve Barbeau authored and GitHub committed 2020-05-09 10:49:00 -04:00
1 parent 473d0d55a7
commit e4b26aea4a
2 files changed
+5 -5

No files matched your search

-5
View File
@@ -132,11 +132,6 @@ func ruleContainFilePathRegex(rule config.Rule) bool {
}
func sendLeak(offender string, line string, filename string, rule config.Rule, c *object.Commit, repo *Repo) {
if repo.Manager.Opts.Redact {
line = strings.ReplaceAll(line, offender, "REDACTED")
offender = "REDACTED"
}
repo.Manager.SendLeaks(manager.Leak{
Line: line,
Offender: offender,