mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
Always generate a report if --report is enabled (#508)
This commit is contained in:
1 file changed
-1
@@ -27,7 +27,6 @@ func WriteReport(report Report, opts options.Options, cfg config.Config) error {
|
|||||||
logrus.Warn("leaks found: ", len(report.Leaks))
|
logrus.Warn("leaks found: ", len(report.Leaks))
|
||||||
} else {
|
} else {
|
||||||
logrus.Info("No leaks found")
|
logrus.Info("No leaks found")
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if opts.Report == "" {
|
if opts.Report == "" {
|
||||||
|
|||||||
Reference in new issue
Block a user