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

This commit is contained in:
Aliaksandr Valialkin
2025-07-14 23:58:39 +02:00
parent 46bf81a455
commit 769e8d6990
5 changed files with 8 additions and 8 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,