mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
handle goimports/go vet warnings
This commit is contained in:
1 parent
57d2d345b6
commit
8b70e7fc2f
12 files changed
+178
-127
No files matched your search
@@ -1,7 +1,6 @@
|
||||
package report
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -43,10 +42,3 @@ func (f *Finding) Redact() {
|
||||
f.Match = strings.Replace(f.Match, f.Secret, "REDACTED", -1)
|
||||
f.Secret = "REDACT"
|
||||
}
|
||||
|
||||
func (f *Finding) Hash() string {
|
||||
return f.Secret + f.Commit +
|
||||
strconv.Itoa(f.EndLine) +
|
||||
strconv.Itoa(f.StartLine)
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user