summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-20 10:12:08 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-20 10:12:08 +0100
commitafcfe9d8e3d1f636165b0e236fe5ae3c44ae0be8 (patch)
treed2452a0b206e1436fc9530f8369957d36d050072
parentf9c769b1ecef5705486ad58cd16529bcf09a679d (diff)
downloadrabbitmq-server-git-afcfe9d8e3d1f636165b0e236fe5ae3c44ae0be8.tar.gz
refactor
-rw-r--r--src/rabbit_plugin.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_plugin.erl b/src/rabbit_plugin.erl
index 33eaea62c2..7cde5b77cc 100644
--- a/src/rabbit_plugin.erl
+++ b/src/rabbit_plugin.erl
@@ -103,10 +103,10 @@ action(enable, ToEnable0, _Opts, PluginsDir, PluginsDistDir) ->
_ -> io:format("Will enable: ~p~n", [EnableOrder1]),
ok = lists:foldl(
fun (Plugin, ok) -> enable_one_plugin(Plugin, PluginsDir) end,
- ok, lookup_plugins(EnableOrder1, AllPlugins)),
- update_enabled_plugins(PluginsDir, plugin_names(NewEnabledPlugins)),
- action(prune, [], {}, PluginsDir, PluginsDistDir)
- end;
+ ok, lookup_plugins(EnableOrder1, AllPlugins))
+ end,
+ update_enabled_plugins(PluginsDir, plugin_names(NewEnabledPlugins)),
+ action(prune, [], {}, PluginsDir, PluginsDistDir);
action(prune, [], _Opts, PluginsDir, PluginsDistDir) ->
ExplicitlyEnabledPlugins = read_enabled_plugins(PluginsDir),