summaryrefslogtreecommitdiff
path: root/internal/db/actions.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-03-07 13:05:33 +0100
committerLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-03-07 13:05:33 +0100
commitac9c6b62513e0e56262c21ca108a4aa78d61a557 (patch)
treea4084b72f259ada9c52e8ab2b31928712ba1a1ef /internal/db/actions.go
parentcreate db schemas for accounts (diff)
downloadgotosocial-ac9c6b62513e0e56262c21ca108a4aa78d61a557.tar.xz
tiny bit of moving around
Diffstat (limited to 'internal/db/actions.go')
-rw-r--r--internal/db/actions.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/db/actions.go b/internal/db/actions.go
index 9a3012465..6fa7d23ae 100644
--- a/internal/db/actions.go
+++ b/internal/db/actions.go
@@ -29,8 +29,8 @@ import (
// Initialize will initialize the database given in the config for use with GoToSocial
var Initialize action.GTSAction = func(ctx context.Context, c *config.Config, log *logrus.Logger) error {
db, err := New(ctx, c, log)
- if err != nil {
- return err
- }
- return db.CreateSchema(ctx)
+ if err != nil {
+ return err
+ }
+ return db.CreateSchema(ctx)
}