This is an automated email from the ASF dual-hosted git repository.

pbacsko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git


The following commit(s) were added to refs/heads/master by this push:
     new bda57dda [YUNIKORN-2549] Fixing lint issues (#816)
bda57dda is described below

commit bda57dda1a461517491d849bf8e3196ead3416a1
Author: Michael Akinyemi <[email protected]>
AuthorDate: Fri Apr 12 11:45:20 2024 +0200

    [YUNIKORN-2549] Fixing lint issues (#816)
    
    Replaced strings Replace() with ReplaceAll() to resolve gocritic issue.
    
    Closes: #816
    
    Signed-off-by: Peter Bacsko <[email protected]>
---
 test/e2e/framework/helpers/common/utils.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/e2e/framework/helpers/common/utils.go 
b/test/e2e/framework/helpers/common/utils.go
index 7d72c46f..ed4f130d 100644
--- a/test/e2e/framework/helpers/common/utils.go
+++ b/test/e2e/framework/helpers/common/utils.go
@@ -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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to