diff --git a/cmd/africastalking/main.go b/cmd/africastalking/main.go index ee86856..3a90ec2 100644 --- a/cmd/africastalking/main.go +++ b/cmd/africastalking/main.go @@ -60,7 +60,7 @@ func main() { flag.Var(&langs, "language", "add symbol resolution for language") flag.Parse() - if connStr != "" { + if connStr == "" { connStr = config.DbConn } connData, err := storage.ToConnData(connStr) diff --git a/cmd/async/main.go b/cmd/async/main.go index 22d8c11..5efc701 100644 --- a/cmd/async/main.go +++ b/cmd/async/main.go @@ -71,7 +71,7 @@ func main() { flag.Var(&langs, "language", "add symbol resolution for language") flag.Parse() - if connStr != "" { + if connStr == "" { connStr = config.DbConn } connData, err := storage.ToConnData(connStr) diff --git a/cmd/http/main.go b/cmd/http/main.go index 96e3933..d3c6a67 100644 --- a/cmd/http/main.go +++ b/cmd/http/main.go @@ -59,7 +59,7 @@ func main() { flag.Var(&langs, "language", "add symbol resolution for language") flag.Parse() - if connStr != "" { + if connStr == "" { connStr = config.DbConn } connData, err := storage.ToConnData(connStr) diff --git a/cmd/main.go b/cmd/main.go index f030dbb..86a0e6a 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -8,6 +8,7 @@ import ( "path" "git.defalsify.org/vise.git/engine" + "git.defalsify.org/vise.git/lang" "git.defalsify.org/vise.git/logging" "git.defalsify.org/vise.git/resource" "git.grassecon.net/urdt/ussd/config" @@ -52,7 +53,7 @@ func main() { flag.Var(&langs, "language", "add symbol resolution for language") flag.Parse() - if connStr != "" { + if connStr == "" { connStr = config.DbConn } connData, err := storage.ToConnData(connStr)