From da641a6d3d8e6cc3606e853beb8cad0b3be966cf Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Wed, 14 Jun 2023 03:25:19 +0200 Subject: [PATCH] Remove redundant error messages. --- src/responses/errors.cr | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/responses/errors.cr b/src/responses/errors.cr index db8e335..2cf12c6 100644 --- a/src/responses/errors.cr +++ b/src/responses/errors.cr @@ -60,11 +60,11 @@ class AuthD::Response end AuthD.responses << ErrorInvalidEmailFormat - IPC::JSON.message ErrorInvalidCredentials, 29 do + IPC::JSON.message ErrorAlreadyUsersInDB, 29 do def initialize() end end - AuthD.responses << ErrorInvalidCredentials + AuthD.responses << ErrorAlreadyUsersInDB IPC::JSON.message ErrorReadOnlyProfileKeys, 30 do property read_only_keys : Array(String) @@ -96,10 +96,4 @@ class AuthD::Response end end AuthD.responses << ErrorInvalidRenewKey - - IPC::JSON.message ErrorAlreadyUsersInDB, 35 do - def initialize() - end - end - AuthD.responses << ErrorAlreadyUsersInDB end