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:
parent
35cf51b506
commit
a521603a39
|
|
@ -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]),
|
||||
|
|
|
|||
Loading…
Reference in New Issue