refactor: use bytes.ReplaceAll directly (#3455)
This commit is contained in:
parent
457fabd7e1
commit
de1c4ec546
@ -164,7 +164,7 @@ func function(pc uintptr) []byte {
|
||||
if period := bytes.Index(name, dot); period >= 0 {
|
||||
name = name[period+1:]
|
||||
}
|
||||
name = bytes.Replace(name, centerDot, dot, -1)
|
||||
name = bytes.ReplaceAll(name, centerDot, dot)
|
||||
return name
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user