Skip to content

Commit

Permalink
Merge 923aacf into 0855689
Browse files Browse the repository at this point in the history
  • Loading branch information
dcRUSTy committed Aug 13, 2020
2 parents 0855689 + 923aacf commit ab078c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func GenerateReport(r *helpers.DetectionResults, directory string) (path string,
jsonFilePath = filepath.Join(path, jsonFileName)
}

if directory == "" {
_ = os.RemoveAll("talisman_reports")
}

err = os.MkdirAll(path, 0755)
if err != nil {
return "", fmt.Errorf("error creating path %s: %v", path, err)
Expand Down

0 comments on commit ab078c2

Please sign in to comment.