mirror of
https://github.com/matrix-org/dendrite
synced 2024-11-11 20:31:08 +01:00
Add back missing returns for httputil.LogThenError calls (#730)
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
6106ec1399
commit
86e65bb22d
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ func GetFilter(
|
||||||
filter := gomatrix.Filter{}
|
filter := gomatrix.Filter{}
|
||||||
err = json.Unmarshal(res, &filter)
|
err = json.Unmarshal(res, &filter)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
httputil.LogThenError(req, err)
|
return httputil.LogThenError(req, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
|
|
|
@ -107,7 +107,7 @@ func Login(
|
||||||
|
|
||||||
token, err := auth.GenerateAccessToken()
|
token, err := auth.GenerateAccessToken()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
httputil.LogThenError(req, err)
|
return httputil.LogThenError(req, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
dev, err := getDevice(req.Context(), r, deviceDB, acc, localpart, token)
|
dev, err := getDevice(req.Context(), r, deviceDB, acc, localpart, token)
|
||||||
|
|
Loading…
Reference in a new issue