summaryrefslogtreecommitdiff
path: root/internal/gotosocial
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-06-03 13:58:57 +0200
committerLibravatar GitHub <noreply@github.com>2023-06-03 13:58:57 +0200
commit21c1552daafbcedbd2e19b0c155ff8db9cff2be0 (patch)
tree00d945280a72d30d51acb618ad7257432d1f9e1a /internal/gotosocial
parent[bugfix] Fix first item of thread dereferencing always being skipped (#1858) (diff)
downloadgotosocial-21c1552daafbcedbd2e19b0c155ff8db9cff2be0.tar.xz
[chore] Update versions, fix lint errors (#1860)
Diffstat (limited to 'internal/gotosocial')
-rw-r--r--internal/gotosocial/gotosocial.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/gotosocial/gotosocial.go b/internal/gotosocial/gotosocial.go
index 7ce70980d..4c6846ff9 100644
--- a/internal/gotosocial/gotosocial.go
+++ b/internal/gotosocial/gotosocial.go
@@ -72,8 +72,6 @@ func (gts *gotosocial) Stop(ctx context.Context) error {
if err := gts.apiRouter.Stop(ctx); err != nil {
return err
}
- if err := gts.db.Stop(ctx); err != nil {
- return err
- }
- return nil
+
+ return gts.db.Stop(ctx)
}