mirror of
https://github.com/go-delve/delve.git
synced 2025-11-03 22:08:33 +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:
@ -195,7 +195,7 @@ func BuildFixture(name string, flags BuildFlags) Fixture {
|
||||
source = filepath.ToSlash(source)
|
||||
sympath, err := filepath.EvalSymlinks(source)
|
||||
if err == nil {
|
||||
source = strings.Replace(sympath, "\\", "/", -1)
|
||||
source = strings.ReplaceAll(sympath, "\\", "/")
|
||||
}
|
||||
|
||||
absdir, _ := filepath.Abs(dir)
|
||||
|
||||
Reference in New Issue
Block a user