diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2020-05-11 12:28:33 +0200 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2020-05-11 12:28:33 +0200 |
| commit | e3095b63fbfed7efef65f3fa73b897d5ba041d64 (patch) | |
| tree | 3e28c8b0f670928bbadc1cf57f46484587aedbfc /src | |
| parent | 2240f746181087c44c71f35ce849944fd27b754a (diff) | |
| download | rabbitmq-server-git-e3095b63fbfed7efef65f3fa73b897d5ba041d64.tar.gz | |
rabbit_auth_backend_internal: Removed never used case clause
... in put_user/3.
If the ets call behind `lookup_user/1` fails for another reason than the
entry was not found, it would be an exception anyway.
Reported by Dialyzer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_auth_backend_internal.erl | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/rabbit_auth_backend_internal.erl b/src/rabbit_auth_backend_internal.erl index ce9a832267..827d601652 100644 --- a/src/rabbit_auth_backend_internal.erl +++ b/src/rabbit_auth_backend_internal.erl @@ -494,11 +494,7 @@ put_user(User, Version, ActingUser) -> end, UserExists = case rabbit_auth_backend_internal:lookup_user(Username) of - %% expected {error, not_found} -> false; - %% shouldn't normally happen but worth guarding - %% against - {error, _} -> false; _ -> true end, |
