diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-03-27 15:50:39 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-03-27 15:50:39 +0000 |
commit | 8abc5465a93aff05337d24f18e920373371d1b54 (patch) | |
tree | 0c5d83c4822566c1802d9e7b66a49879540b7676 /src/rabbit_plugins.erl | |
parent | 5ef6c3c22b9507928cd48a9c1df109c35451dc08 (diff) | |
download | rabbitmq-server-8abc5465a93aff05337d24f18e920373371d1b54.tar.gz |
Remove pointless branches found by dialyzer.
Diffstat (limited to 'src/rabbit_plugins.erl')
-rw-r--r-- | src/rabbit_plugins.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_plugins.erl b/src/rabbit_plugins.erl index 4ac6c4a0..c0fb05e2 100644 --- a/src/rabbit_plugins.erl +++ b/src/rabbit_plugins.erl @@ -143,8 +143,7 @@ prepare_dir_plugin(PluginAppDescPath) -> delete_recursively(Fn) -> case rabbit_file:recursive_delete([Fn]) of ok -> ok; - {error, {Path, E}} -> {error, {cannot_delete, Path, E}}; - Error -> Error + {error, {Path, E}} -> {error, {cannot_delete, Path, E}} end. prepare_plugin(#plugin{type = ez, location = Location}, ExpandDir) -> |