From 86e65bb22d49ef2e6b5d5724e6e1fd0327f200c6 Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Wed, 10 Jul 2019 00:33:52 +0800 Subject: Add back missing returns for httputil.LogThenError calls (#730) Signed-off-by: Alex Chen --- clientapi/routing/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clientapi/routing/login.go') diff --git a/clientapi/routing/login.go b/clientapi/routing/login.go index abcf7f56..2e2d409f 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) -- cgit v1.2.3