Add back missing returns for httputil.LogThenError calls
MODIFY
clientapi/routing/filter.go
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{

MODIFY
clientapi/routing/login.go
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)

Add back missing returns for httputil.LogThenError calls (#730)

Signed-off-by: Alex Chen <minecnly@gmail.com>