all: replace strings.Replace with string.ReplaceAll (#24835)

This commit is contained in:
s7v7nislands
2022-05-09 13:13:23 +03:00
committed by GitHub
parent 86d5477079
commit 7caa2d8163
10 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -116,5 +116,5 @@ func (c *collector) writeSummaryPercentile(name, p string, value interface{}) {
}
func mutateKey(key string) string {
return strings.Replace(key, "/", "_", -1)
return strings.ReplaceAll(key, "/", "_")
}