From 86e65bb22d49ef2e6b5d5724e6e1fd0327f200c6 Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Wed, 10 Jul 2019 00:33:52 +0800 Subject: [PATCH] Add back missing returns for httputil.LogThenError calls (#730) Signed-off-by: Alex Chen --- clientapi/routing/filter.go | 2 +- clientapi/routing/login.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clientapi/routing/filter.go b/clientapi/routing/filter.go index 109c55da1..1ed91cd2f 100644 --- a/clientapi/routing/filter.go +++ b/clientapi/routing/filter.go @@ -62,7 +62,7 @@ func GetFilter( filter := gomatrix.Filter{} err = json.Unmarshal(res, &filter) if err != nil { - httputil.LogThenError(req, err) + return httputil.LogThenError(req, err) } return util.JSONResponse{ diff --git a/clientapi/routing/login.go b/clientapi/routing/login.go index abcf7f569..2e2d409f6 100644 --- a/clientapi/routing/login.go +++ b/clientapi/routing/login.go @@ -107,7 +107,7 @@ func Login( token, err := auth.GenerateAccessToken() if err != nil { - httputil.LogThenError(req, err) + return httputil.LogThenError(req, err) } dev, err := getDevice(req.Context(), r, deviceDB, acc, localpart, token)