Always generate a report if --report is enabled (#508)

This commit is contained in:
Kai authored and GitHub committed 2021-01-26 07:59:51 -05:00
1 parent 901f932a89
commit c8e15c731a
1 file changed
-1
-1
View File
@@ -27,7 +27,6 @@ func WriteReport(report Report, opts options.Options, cfg config.Config) error {
logrus.Warn("leaks found: ", len(report.Leaks))
} else {
logrus.Info("No leaks found")
return nil
}
if opts.Report == "" {