mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
fix deduplication issue caused by clobbered findings (#742)
* fix deduplication issue caused by clobbered findings * fix index * remove indexing, slow is better than wrong
This commit is contained in:
1 parent
84e285e4ce
commit
ce42947cae
17 files changed
+81
-66
No files matched your search
+1
-1
@@ -13,7 +13,7 @@ const (
|
||||
CWE_DESCRIPTION = "Use of Hard-coded Credentials"
|
||||
)
|
||||
|
||||
func Write(findings []*Finding, cfg config.Config, ext string, reportPath string) error {
|
||||
func Write(findings []Finding, cfg config.Config, ext string, reportPath string) error {
|
||||
if len(findings) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user