mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
all: replace strings.Replace(..., -1) with strings.ReplaceAll(...)
This commit is contained in:
@@ -46,7 +46,7 @@ func ParsePath(path string) (*Path, error) {
|
||||
|
||||
// Substitute double slashes with single slashes in the path, since such slashes
|
||||
// may appear due improper copy-pasting of the url.
|
||||
suffix := strings.Replace(s, "//", "/", -1)
|
||||
suffix := strings.ReplaceAll(s, "//", "/")
|
||||
|
||||
p := &Path{
|
||||
Prefix: prefix,
|
||||
|
||||
Reference in New Issue
Block a user