diff --git a/commands/server.go b/commands/server.go index 6ce679c6e..98ea60f4e 100644 --- a/commands/server.go +++ b/commands/server.go @@ -146,7 +146,7 @@ func fixUrl(s string) (string, error) { if !strings.HasPrefix(s, "http://") && !strings.HasPrefix(s, "https://") { s = "http://" + s } - if len(s) > 0 && !strings.HasSuffix(s, "/") { + if !strings.HasSuffix(s, "/") { s = s + "/" } u, err := url.Parse(s)