mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 03:13:11 -06:00
Apply suggestions from code review
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
parent
49c0478e6e
commit
7c72953b8b
|
|
@ -62,7 +62,7 @@ func GetEvent(
|
||||||
// Event not found locally
|
// Event not found locally
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
Code: http.StatusNotFound,
|
Code: http.StatusNotFound,
|
||||||
JSON: jsonerror.NotFound("The event was not found or you do not have permission to read this event."),
|
JSON: jsonerror.NotFound("The event was not found or you do not have permission to read this event"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -99,7 +99,7 @@ func GetEvent(
|
||||||
// Missing some events locally; stateResp.StateEvents unavailable.
|
// Missing some events locally; stateResp.StateEvents unavailable.
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
Code: http.StatusNotFound,
|
Code: http.StatusNotFound,
|
||||||
JSON: jsonerror.NotFound("The event was not found or you do not have permission to read this event."),
|
JSON: jsonerror.NotFound("The event was not found or you do not have permission to read this event"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue