diff options
author | 2021-11-22 08:46:19 +0100 | |
---|---|---|
committer | 2021-11-22 08:46:19 +0100 | |
commit | f8630348b4c14215d87921962a2acbe8d3b6c981 (patch) | |
tree | 8a06b1e91ca408de2451a79fee44de831456d729 /internal/federation/federatingdb/reject.go | |
parent | tidy up database creation logic a bit (#317) (diff) | |
download | gotosocial-f8630348b4c14215d87921962a2acbe8d3b6c981.tar.xz |
Enable stricter linting with golangci-lint (#316)
* update golangci-lint
* add golangci config file w/ more linters
* correct issues flagged by stricter linters
* add more generous timeout for golangci-lint
* add some style + formatting guidelines
* move timeout to config file
* go fmt
Diffstat (limited to 'internal/federation/federatingdb/reject.go')
-rw-r--r-- | internal/federation/federatingdb/reject.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/federation/federatingdb/reject.go b/internal/federation/federatingdb/reject.go index 2d8687ee9..15d4a87ae 100644 --- a/internal/federation/federatingdb/reject.go +++ b/internal/federation/federatingdb/reject.go @@ -90,9 +90,8 @@ func (f *federatingDB) Reject(ctx context.Context, reject vocab.ActivityStreamsR continue } - switch iter.GetType().GetTypeName() { - // we have the whole object so we can figure out what we're rejecting - case ap.ActivityFollow: + if iter.GetType().GetTypeName() == ap.ActivityFollow { + // we have the whole object so we can figure out what we're rejecting // REJECT FOLLOW asFollow, ok := iter.GetType().(vocab.ActivityStreamsFollow) if !ok { |