all: replace strings.Replace(..., -1) with strings.ReplaceAll(...)

This commit is contained in:
Aliaksandr Valialkin
2025-07-14 23:58:39 +02:00
parent 02e15f1cc5
commit dc14513009
6 changed files with 9 additions and 9 deletions

View File

@@ -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,