Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Add back missing returns for httputil.LogThenError calls (#730)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chen <[email protected]>
  • Loading branch information
Cnly authored and anoadragon453 committed Jul 9, 2019
1 parent 6106ec1 commit 86e65bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clientapi/routing/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion clientapi/routing/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 86e65bb

Please sign in to comment.