1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-20 22:42:59 +03:00

feat: fix linter

This commit is contained in:
Stephanie Hingtgen
2021-10-21 14:59:25 -06:00
parent aee0cc6cae
commit 002143fcee

View File

@ -267,7 +267,7 @@ func setupTCPConn(u *url.URL) (*Options, error) {
// getHostPortWithDefaults is a helper function that splits the url into
// a host and a port. If the host is missing, it defaults to localhost
// and if the port is missing, it defaults to 6379
// and if the port is missing, it defaults to 6379.
func getHostPortWithDefaults(u *url.URL) (string, string) {
host, port, err := net.SplitHostPort(u.Host)
if err != nil {