Merge remote-tracking branch 'upstream/master' into bugfix/whitelist-checks

This commit is contained in:
Milo Minderbinder committed 2018-12-31 16:54:53 -05:00
commit 6fa52ae7cc
3 files changed
+9

No files matched your search

+4
View File
@@ -346,6 +346,10 @@ func run() ([]Leak, error) {
// writeReport writes a report to a file specified in the --report= option.
// Default format for report is JSON. You can use the --csv option to write the report as a csv
func writeReport(leaks []Leak) error {
if len(leaks) == 0 {
return nil
}
var err error
log.Infof("writing report to %s", opts.Report)
if strings.HasSuffix(opts.Report, ".csv") {