summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-10-13 13:50:24 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-13 13:50:24 +0200
commita07e62e49e1e31ea8809816072d4bc908a73321e (patch)
treed10a516c2935a9b0e1ddc247492d0b0088c18a4d /internal
parentadd new logo + credits (#277) (diff)
downloadgotosocial-a07e62e49e1e31ea8809816072d4bc908a73321e.tar.xz
go fmt (#278)
Diffstat (limited to 'internal')
-rw-r--r--internal/db/bundb/trace.go3
-rw-r--r--internal/oauth/tokenstore.go4
-rw-r--r--internal/trans/importer.go4
-rw-r--r--internal/trans/trans_test.go2
-rw-r--r--internal/visibility/filter.go4
5 files changed, 8 insertions, 9 deletions
diff --git a/internal/db/bundb/trace.go b/internal/db/bundb/trace.go
index b13adf1bf..31f64cd36 100644
--- a/internal/db/bundb/trace.go
+++ b/internal/db/bundb/trace.go
@@ -28,8 +28,7 @@ import (
)
func newDebugQueryHook() bun.QueryHook {
- return &debugQueryHook{
- }
+ return &debugQueryHook{}
}
// debugQueryHook implements bun.QueryHook
diff --git a/internal/oauth/tokenstore.go b/internal/oauth/tokenstore.go
index a198b0111..d4cbbf155 100644
--- a/internal/oauth/tokenstore.go
+++ b/internal/oauth/tokenstore.go
@@ -35,7 +35,7 @@ import (
// tokenStore is an implementation of oauth2.TokenStore, which uses our db interface as a storage backend.
type tokenStore struct {
oauth2.TokenStore
- db db.Basic
+ db db.Basic
}
// newTokenStore returns a token store that satisfies the oauth2.TokenStore interface.
@@ -44,7 +44,7 @@ type tokenStore struct {
// the tokens in the DB once per minute and deletes any that have expired.
func newTokenStore(ctx context.Context, db db.Basic) oauth2.TokenStore {
ts := &tokenStore{
- db: db,
+ db: db,
}
// set the token store to clean out expired tokens once per minute, or return if we're done
diff --git a/internal/trans/importer.go b/internal/trans/importer.go
index 81029a098..335bb8d70 100644
--- a/internal/trans/importer.go
+++ b/internal/trans/importer.go
@@ -30,12 +30,12 @@ type Importer interface {
}
type importer struct {
- db db.DB
+ db db.DB
}
// NewImporter returns a new Importer interface that uses the given db.
func NewImporter(db db.DB) Importer {
return &importer{
- db: db,
+ db: db,
}
}
diff --git a/internal/trans/trans_test.go b/internal/trans/trans_test.go
index 3e3dfe4a3..6554167b0 100644
--- a/internal/trans/trans_test.go
+++ b/internal/trans/trans_test.go
@@ -26,7 +26,7 @@ import (
type TransTestSuite struct {
suite.Suite
- db db.DB
+ db db.DB
}
func (suite *TransTestSuite) SetupTest() {
diff --git a/internal/visibility/filter.go b/internal/visibility/filter.go
index b5f49c831..e3435842e 100644
--- a/internal/visibility/filter.go
+++ b/internal/visibility/filter.go
@@ -44,12 +44,12 @@ type Filter interface {
}
type filter struct {
- db db.DB
+ db db.DB
}
// NewFilter returns a new Filter interface that will use the provided database.
func NewFilter(db db.DB) Filter {
return &filter{
- db: db,
+ db: db,
}
}