Refactor conditional

This commit is contained in:
Dan Sosedoff 2014-12-12 18:05:51 -06:00
parent 4086215a03
commit de22b80203

View File

@ -77,9 +77,7 @@ func getConnectionString() string {
if options.Host == "localhost" || options.Host == "127.0.0.1" { if options.Host == "localhost" || options.Host == "127.0.0.1" {
options.Ssl = "disable" options.Ssl = "disable"
} }
} } else {
if options.Ssl != "" {
str += fmt.Sprintf(" sslmode=%s", options.Ssl) str += fmt.Sprintf(" sslmode=%s", options.Ssl)
} }