From bb60b29b87320420029999892fd563893fddbf1c Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 18 Jan 2021 13:01:37 +0000 Subject: [PATCH] goimports --- clientapi/routing/routing.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clientapi/routing/routing.go b/clientapi/routing/routing.go index 8c6a321a1..7c320253d 100644 --- a/clientapi/routing/routing.go +++ b/clientapi/routing/routing.go @@ -63,8 +63,8 @@ func Setup( userInteractiveAuth := auth.NewUserInteractive(accountDB.GetAccountByPassword, cfg) unstableFeatures := make(map[string]bool) - for _,msc := range cfg.MSCs.MSCs { - unstableFeatures["org.matrix." + msc] = true + for _, msc := range cfg.MSCs.MSCs { + unstableFeatures["org.matrix."+msc] = true } publicAPIMux.Handle("/versions", @@ -72,7 +72,7 @@ func Setup( return util.JSONResponse{ Code: http.StatusOK, JSON: struct { - Versions []string `json:"versions"` + Versions []string `json:"versions"` UnstableFeatures map[string]bool `json:"unstable_features"` }{Versions: []string{ "r0.0.1", @@ -82,7 +82,7 @@ func Setup( "r0.4.0", "r0.5.0", "r0.6.1", - },UnstableFeatures: unstableFeatures}, + }, UnstableFeatures: unstableFeatures}, } }), ).Methods(http.MethodGet, http.MethodOptions)