Test blank connection options

This commit is contained in:
Dan Sosedoff
2014-12-17 21:56:15 -06:00
parent 09ad707d94
commit 58ee238db4
3 changed files with 12 additions and 8 deletions

View File

@@ -91,15 +91,8 @@ func getConnectionString() string {
return str
}
func connectionSettingsBlank() bool {
return options.Host == "" &&
options.User == "" &&
options.DbName == "" &&
options.Url == ""
}
func initClient() {
if connectionSettingsBlank() {
if connectionSettingsBlank(options) {
return
}