From 477b6c1b0da476b2878c608c9e3f74e43e727ed2 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 20 Feb 2017 15:38:31 +0000 Subject: [PATCH] All up in your lines --- .../matrix-org/dendrite/clientapi/routing/routing.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go b/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go index beebc30b4..13cf4048d 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go @@ -23,9 +23,7 @@ func Setup(servMux *http.ServeMux, httpClient *http.Client) { r0mux.Handle("/rooms/{roomID}/send/{eventType}", make("send_message", wrap(func(req *http.Request) (interface{}, *util.HTTPError) { vars := mux.Vars(req) - roomID := vars["roomID"] - eventType := vars["eventType"] - return writers.SendMessage(req, roomID, eventType) + return writers.SendMessage(req, vars["roomID"], vars["eventType"]) })), )