Test blank connection options
This commit is contained in:
9
main.go
9
main.go
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user