summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2014-03-27 18:50:47 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2014-03-27 18:50:47 +0000
commit23b224600f20fc391515773baedcaa97905091df (patch)
treec20fa764d8ba95f67ddab6b7612de39dd7526148 /src
parenta86d7a16b9a70f7835f95687c5b1eb9020e4bd77 (diff)
downloadrabbitmq-server-git-23b224600f20fc391515773baedcaa97905091df.tar.gz
give in to dialyzer
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_queue_index.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_queue_index.erl b/src/rabbit_queue_index.erl
index ad42ce6ea9..56c19d3f51 100644
--- a/src/rabbit_queue_index.erl
+++ b/src/rabbit_queue_index.erl
@@ -654,9 +654,8 @@ get_journal_handle(State = #qistate { journal_handle = Hdl }) ->
%% Loading Journal. This isn't idempotent and will mess up the counts
%% if you call it more than once on the same state. Assumes the counts
%% are 0 to start with.
-load_journal(State = #qistate { journal_handle = Hdl, dir = Dir }) ->
- case (Hdl =/= undefined orelse
- rabbit_file:is_file(filename:join(Dir, ?JOURNAL_FILENAME))) of
+load_journal(State = #qistate { dir = Dir }) ->
+ case rabbit_file:is_file(filename:join(Dir, ?JOURNAL_FILENAME)) of
true -> {JournalHdl, State1} = get_journal_handle(State),
{ok, 0} = file_handle_cache:position(JournalHdl, 0),
load_journal_entries(State1);