Refactor conditional
This commit is contained in:
parent
4086215a03
commit
de22b80203
4
main.go
4
main.go
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user