summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-11-19 16:15:26 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2012-11-19 16:15:26 +0000
commit4655ba493b26a70075944ade32d764f2f32cffa7 (patch)
treed9490746d5f9ea2fedf796a2b225a9207fa89c79
parent27ff7e9bc045e187942c6484e4391e422b1d0bfe (diff)
downloadrabbitmq-server-4655ba493b26a70075944ade32d764f2f32cffa7.tar.gz
cosmetic
-rw-r--r--src/rabbit_amqqueue_process.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 1c324bbf..abdbd24b 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -1135,11 +1135,11 @@ handle_call(stat, _From, State) ->
handle_call({delete, IfUnused, IfEmpty}, From,
State = #q{backing_queue_state = BQS, backing_queue = BQ}) ->
- IsEmpty = BQ:is_empty(BQS),
+ IsEmpty = BQ:is_empty(BQS),
IsUnused = is_unused(State),
if
- IfEmpty and not(IsEmpty) -> reply({error, not_empty}, State);
- IfUnused and not(IsUnused) -> reply({error, in_use}, State);
+ IfEmpty and not(IsEmpty) -> reply({error, not_empty}, State);
+ IfUnused and not(IsUnused) -> reply({error, in_use}, State);
true -> stop(From, {ok, BQ:len(BQS)}, State)
end;