diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/filter.go b/src/github.com/matrix-org/dendrite/clientapi/routing/filter.go index d14aaeb96..5ca6bf972 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/filter.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/filter.go @@ -17,8 +17,6 @@ package routing import ( "net/http" - "encoding/json" - "github.com/matrix-org/dendrite/clientapi/auth/authtypes" "github.com/matrix-org/dendrite/clientapi/auth/storage/accounts" "github.com/matrix-org/dendrite/clientapi/httputil" @@ -60,14 +58,9 @@ func GetFilter( } } - filterJSON, err := json.Marshal(filter) - if err != nil { - return httputil.LogThenError(req, err) - } - return util.JSONResponse{ Code: 200, - JSON: filterJSON, + JSON: filter, } }