mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
write a report regardless if leaks are present (#758)
This commit is contained in:
1 parent
36779df3bb
commit
43ec22429f
4 files changed
+3
-6
No files matched your search
+1
-1
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
func writeJson(findings []Finding, w io.WriteCloser) error {
|
||||
if len(findings) == 0 {
|
||||
return nil
|
||||
findings = []Finding{}
|
||||
}
|
||||
encoder := json.NewEncoder(w)
|
||||
encoder.SetIndent("", " ")
|
||||
|
||||
Reference in new issue
Block a user