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-25 18:15:05 +08:00 committed by GitHub
parent a84d4d325a
commit fbb4e8e1c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,7 +182,7 @@ func RemoveLocalAlias(
if creatorQueryRes.UserID == "" { if creatorQueryRes.UserID == "" {
return util.JSONResponse{ return util.JSONResponse{
Code: http.StatusNotFound, Code: http.StatusNotFound,
JSON: jsonerror.NotFound("alias does not exist"), JSON: jsonerror.NotFound("Alias does not exist"),
} }
} }
@ -190,7 +190,7 @@ func RemoveLocalAlias(
// TODO: Still allow deletion if user is admin // TODO: Still allow deletion if user is admin
return util.JSONResponse{ return util.JSONResponse{
Code: http.StatusForbidden, Code: http.StatusForbidden,
JSON: jsonerror.Forbidden("you do not have permission to delete this alias"), JSON: jsonerror.Forbidden("You do not have permission to delete this alias"),
} }
} }