commit a07e62e49e1e31ea8809816072d4bc908a73321e
parent 27605f7c47f3d46c37952e7dbfba57f744ad932b
Author: tobi <31960611+tsmethurst@users.noreply.github.com>
Date: Wed, 13 Oct 2021 13:50:24 +0200
go fmt (#278)
Diffstat:
5 files changed, 8 insertions(+), 9 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -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
@@ -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,
}
}