From fbb4e8e1c95157d9280b51c84d6b9e600a64391a Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Thu, 25 Jul 2019 18:15:05 +0800 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> --- clientapi/routing/directory.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clientapi/routing/directory.go b/clientapi/routing/directory.go index ecbcf2b0e..0d91d0426 100644 --- a/clientapi/routing/directory.go +++ b/clientapi/routing/directory.go @@ -182,7 +182,7 @@ func RemoveLocalAlias( if creatorQueryRes.UserID == "" { return util.JSONResponse{ 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 return util.JSONResponse{ 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"), } }