From a07e62e49e1e31ea8809816072d4bc908a73321e Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 13 Oct 2021 13:50:24 +0200 Subject: [PATCH] go fmt (#278) --- internal/db/bundb/trace.go | 3 +-- internal/oauth/tokenstore.go | 4 ++-- internal/trans/importer.go | 4 ++-- internal/trans/trans_test.go | 2 +- internal/visibility/filter.go | 4 ++-- 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 @@ ) 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 @@ // 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 @@ 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, } }