From de22b8020318372a5e0f829398c81f871c99d0b0 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Fri, 12 Dec 2014 18:05:51 -0600 Subject: [PATCH] Refactor conditional --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index fa6afdd..8b284eb 100644 --- a/main.go +++ b/main.go @@ -77,9 +77,7 @@ func getConnectionString() string { if options.Host == "localhost" || options.Host == "127.0.0.1" { options.Ssl = "disable" } - } - - if options.Ssl != "" { + } else { str += fmt.Sprintf(" sslmode=%s", options.Ssl) }