From cca6d7d1d45ca2a409ce7ef4e28c8ae34c2e7e5e Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Sat, 8 May 2021 11:35:16 +0200 Subject: [PATCH] go fmt --- internal/message/processor.go | 3 --- internal/typeutils/internaltoas.go | 2 -- internal/typeutils/internaltoas_test.go | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/message/processor.go b/internal/message/processor.go index d95a829e0..d0027c915 100644 --- a/internal/message/processor.go +++ b/internal/message/processor.go @@ -102,9 +102,6 @@ type Processor interface { // GetFediUser handles the getting of a fedi/activitypub representation of a user/account, performing appropriate authentication // before returning a JSON serializable interface to the caller. GetFediUser(requestedUsername string, request *http.Request) (interface{}, ErrorWithCode) - - - } // processor just implements the Processor interface diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go index 22cac2a4d..73c121155 100644 --- a/internal/typeutils/internaltoas.go +++ b/internal/typeutils/internaltoas.go @@ -28,8 +28,6 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) - - // Converts a gts model account into an Activity Streams person type, following // the spec laid out for mastodon here: https://docs.joinmastodon.org/spec/activitypub/ func (c *converter) AccountToAS(a *gtsmodel.Account) (vocab.ActivityStreamsPerson, error) { diff --git a/internal/typeutils/internaltoas_test.go b/internal/typeutils/internaltoas_test.go index 8ccfbc48c..8eb827e35 100644 --- a/internal/typeutils/internaltoas_test.go +++ b/internal/typeutils/internaltoas_test.go @@ -42,7 +42,7 @@ func (suite *InternalToASTestSuite) SetupSuite() { suite.db = testrig.NewTestDB() suite.log = testrig.NewTestLog() suite.accounts = testrig.NewTestAccounts() - suite.people = testrig.NewTestFediPeople() + suite.people = testrig.NewTestFediPeople() suite.typeconverter = typeutils.NewConverter(suite.config, suite.db) }