Skip to content

Commit

Permalink
[YUNIKORN-2549] Fixing lint issues (#816)
Browse files Browse the repository at this point in the history
Replaced strings Replace() with ReplaceAll() to resolve gocritic issue.

Closes: #816

Signed-off-by: Peter Bacsko <[email protected]>
  • Loading branch information
makinyemi authored and pbacsko committed Apr 12, 2024
1 parent e65642e commit bda57dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/framework/helpers/common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func GetTestName() string {
testReport := ginkgo.CurrentSpecReport()
name := strings.ReplaceAll(testReport.FullText(), " ", "_")
name = strings.Trim(name, "*")
return strings.Replace(name, "/", "-", -1)
return strings.ReplaceAll(name, "/", "-")
}

// ReportDirectoryPath determines the directory path.
Expand Down

0 comments on commit bda57dd

Please sign in to comment.