summaryrefslogtreecommitdiff
path: root/internal/federation/federatingdb/reject.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-11-22 08:46:19 +0100
committerLibravatar GitHub <noreply@github.com>2021-11-22 08:46:19 +0100
commitf8630348b4c14215d87921962a2acbe8d3b6c981 (patch)
tree8a06b1e91ca408de2451a79fee44de831456d729 /internal/federation/federatingdb/reject.go
parenttidy up database creation logic a bit (#317) (diff)
downloadgotosocial-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.go5
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 {