summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 73c9ee2b3e..e84e1f7b33 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() ->