diff options
author | 2021-03-07 13:05:33 +0100 | |
---|---|---|
committer | 2021-03-07 13:05:33 +0100 | |
commit | ac9c6b62513e0e56262c21ca108a4aa78d61a557 (patch) | |
tree | a4084b72f259ada9c52e8ab2b31928712ba1a1ef /internal/db/actions.go | |
parent | create db schemas for accounts (diff) | |
download | gotosocial-ac9c6b62513e0e56262c21ca108a4aa78d61a557.tar.xz |
tiny bit of moving around
Diffstat (limited to 'internal/db/actions.go')
-rw-r--r-- | internal/db/actions.go | 8 |
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) } |