aboutsummaryrefslogtreecommitdiff
path: root/federationapi/routing/publicrooms.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-03-03 14:35:57 +0000
committerGitHub <noreply@github.com>2021-03-03 14:35:57 +0000
commitd15836e260130f85edd5d9a104e5304f001d2681 (patch)
treea426e886cc66b3d676741010860cb794a6999b87 /federationapi/routing/publicrooms.go
parentf0139f12ca6f93b7626be369dc2a829c0326c6e0 (diff)
Increase gocyclo complexity to 25 (and remove all but 2 golint directives related to it) (#1783)
Diffstat (limited to 'federationapi/routing/publicrooms.go')
-rw-r--r--federationapi/routing/publicrooms.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/federationapi/routing/publicrooms.go b/federationapi/routing/publicrooms.go
index d923a236..ddd92c5c 100644
--- a/federationapi/routing/publicrooms.go
+++ b/federationapi/routing/publicrooms.go
@@ -111,7 +111,6 @@ func fillPublicRoomsReq(httpReq *http.Request, request *PublicRoomReq) *util.JSO
}
// due to lots of switches
-// nolint:gocyclo
func fillInRooms(ctx context.Context, roomIDs []string, rsAPI roomserverAPI.RoomserverInternalAPI) ([]gomatrixserverlib.PublicRoom, error) {
avatarTuple := gomatrixserverlib.StateKeyTuple{EventType: "m.room.avatar", StateKey: ""}
nameTuple := gomatrixserverlib.StateKeyTuple{EventType: "m.room.name", StateKey: ""}