Apply suggestions from code review

Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
Alex Chen 2019-07-26 11:39:30 +08:00 committed by GitHub
parent 49c0478e6e
commit 7c72953b8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ func GetEvent(
// Event not found locally
return util.JSONResponse{
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.
return util.JSONResponse{
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"),
}
}