mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Remove unneeded if statement
Which fixes the goconst warning for "POST". Signed-off-by: Remi Reuvekamp <git@remireuvekamp.nl>
This commit is contained in:
parent
5c48d7316e
commit
d7e96f601b
|
|
@ -55,13 +55,6 @@ func Logout(
|
|||
func LogoutAll(
|
||||
req *http.Request, deviceDB *devices.Database, device *authtypes.Device,
|
||||
) util.JSONResponse {
|
||||
if req.Method != "POST" {
|
||||
return util.JSONResponse{
|
||||
Code: 405,
|
||||
JSON: jsonerror.NotFound("Bad method"),
|
||||
}
|
||||
}
|
||||
|
||||
localpart, _, err := gomatrixserverlib.SplitID('@', device.UserID)
|
||||
if err != nil {
|
||||
return httputil.LogThenError(req, err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue