summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-03-21 14:28:34 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-03-21 14:28:34 +0000
commit7f13bc65ab2ea9a1c712990781a80f225c2188e9 (patch)
treebaf78b3c2abf81bebcbd7d4b168006033467151c
parentb38be006e69e96cdd2e81929b874cd43bad0b9f0 (diff)
downloadrabbitmq-server-7f13bc65ab2ea9a1c712990781a80f225c2188e9.tar.gz
Oops.
-rw-r--r--src/rabbit_upgrade.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_upgrade.erl b/src/rabbit_upgrade.erl
index 73c9ee2b..e84e1f7b 100644
--- a/src/rabbit_upgrade.erl
+++ b/src/rabbit_upgrade.erl
@@ -126,8 +126,8 @@ take_backup() ->
maybe_remove_backup() ->
case filelib:is_dir(backup_dir()) of
- {ok, _} -> remove_backup();
- _ -> ok
+ true -> ok = remove_backup();
+ _ -> ok
end.
remove_backup() ->