Fix init database condition

This commit is contained in:
Jan-Lukas Else 2022-07-17 08:48:34 +02:00
parent e46d4b1155
commit f7c135cac2
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ type database struct {
} }
func (a *goBlog) initDatabase(logging bool) (err error) { func (a *goBlog) initDatabase(logging bool) (err error) {
if a.db != nil { if a.db != nil && a.db.db != nil {
return return
} }
if logging { if logging {