Remove unused catch clauses

Delete functions now do not check vhost or user existance, they just
return ok if the entry is no longer on the metadata store.
This commit is contained in:
Diana Parra Corbacho 2023-02-13 15:48:01 +01:00
parent 35cf51b506
commit a521603a39
1 changed files with 0 additions and 8 deletions

View File

@ -521,14 +521,6 @@ clear_permissions(Username, VirtualHost, ActingUser) ->
{user_who_performed_action, ActingUser}]),
R
catch
throw:{error, {no_such_vhost, _}} = Error ->
rabbit_log:warning("Failed to clear permissions for user '~ts': virtual host '~ts' does not exist",
[Username, VirtualHost]),
throw(Error);
throw:{error, {no_such_user, _}} = Error ->
rabbit_log:warning("Failed to clear permissions for user '~ts': the user does not exist",
[Username]),
throw(Error);
Class:Error:Stacktrace ->
rabbit_log:warning("Failed to clear permissions for user '~ts' in virtual host '~ts': ~tp",
[Username, VirtualHost, Error]),