mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 20:20:40 +08:00
pkg/proc,service/test: refactor to strings.ReplaceAll (#3269)
Use strings.ReplaceAll instead of strings.Replace with -1 as the last argument.
This commit is contained in:
@ -56,7 +56,7 @@ func testProgPath(t *testing.T, name string) string {
|
||||
}
|
||||
sympath, err := filepath.EvalSymlinks(fp)
|
||||
if err == nil {
|
||||
fp = strings.Replace(sympath, "\\", "/", -1)
|
||||
fp = strings.ReplaceAll(sympath, "\\", "/")
|
||||
}
|
||||
return fp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user