diff --git a/database/db.go b/database/db.go index d2cf1ee..6043547 100644 --- a/database/db.go +++ b/database/db.go @@ -38,7 +38,7 @@ func buildDbURL() (*url.URL, string) { var host string if portFound { - fmt.Sprintf("%s:%d", dbHost, dbPort) + host = fmt.Sprintf("%s:%d", dbHost, dbPort) } else { host = dbHost }