Revert "Refactor conditional"
This reverts commit de22b8020318372a5e0f829398c81f871c99d0b0.
This commit is contained in:
parent
de22b80203
commit
d93ec7e56d
4
main.go
4
main.go
@ -77,7 +77,9 @@ 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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user