Skip to content

Commit

Permalink
feat: improve code
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
  • Loading branch information
shubham-cmyk committed Feb 21, 2024
1 parent d941831 commit a7af542
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ func (report *TestsReport) SaveReportBasedOnType(reportFormat v1alpha1.ReportFor
if filepath.Ext(reportName) == "" {
reportName += "." + strings.ToLower(string(reportFormat))
}
filePath := filepath.Join(reportPath, reportName)
if reportPath == "" {
filePath = reportName
filePath := reportName
if reportPath != "" {
filePath = filepath.Join(reportPath, reportName)
}
return SaveReport(report, serializer, filePath)
}
Expand Down

0 comments on commit a7af542

Please sign in to comment.