summaryrefslogtreecommitdiff
path: root/src/rabbit_plugins.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-03-27 15:50:39 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-03-27 15:50:39 +0000
commit8abc5465a93aff05337d24f18e920373371d1b54 (patch)
tree0c5d83c4822566c1802d9e7b66a49879540b7676 /src/rabbit_plugins.erl
parent5ef6c3c22b9507928cd48a9c1df109c35451dc08 (diff)
downloadrabbitmq-server-8abc5465a93aff05337d24f18e920373371d1b54.tar.gz
Remove pointless branches found by dialyzer.
Diffstat (limited to 'src/rabbit_plugins.erl')
-rw-r--r--src/rabbit_plugins.erl3
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) ->