aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index 4428edb..8f76d80 100644
--- a/main.go
+++ b/main.go
@@ -77,6 +77,10 @@ func main() {
if err != nil {
panic(err)
}
+ if cfg == nil {
+ println("config initialized")
+ return
+ }
db, err := cfg.Database.Connect()
if err != nil {