Skip to content

Commit

Permalink
Modify store creation not to fail on template initialization failure (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdelacroix committed Nov 3, 2021
1 parent 878e185 commit 7f9b628
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/services/store/sqlstore/sqlstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f9b628

Please sign in to comment.