From 751f632c36b308670fa806c86238940d2c5f9d5a Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Wed, 3 Nov 2021 19:10:32 +0100 Subject: [PATCH] Modify store creation not to fail on template initialization failure (#1722) --- server/services/store/sqlstore/sqlstore.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/services/store/sqlstore/sqlstore.go b/server/services/store/sqlstore/sqlstore.go index 1fda2ed0d..e03b76077 100644 --- a/server/services/store/sqlstore/sqlstore.go +++ b/server/services/store/sqlstore/sqlstore.go @@ -44,11 +44,8 @@ func New(dbType, connectionString, tablePrefix string, logger *mlog.Logger, db * return nil, err } - err = store.InitializeTemplates() - if err != nil { + if err := store.InitializeTemplates(); err != nil { logger.Error(`InitializeTemplates failed`, mlog.Err(err)) - - return nil, err } return store, nil