Commit 10191b81 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Consistent style in mustParseAddress

parent 0bae36ad
......@@ -57,7 +57,7 @@ func mustParseAddress(address, scheme string) string {
return host + ":" + port
}
address = fmt.Sprintf("%s:%s", address, scheme)
address = address + ":" + scheme
if host, port, err := net.SplitHostPort(address); err == nil {
return host + ":" + port
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment