diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2012-11-19 16:15:26 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-11-19 16:15:26 +0000 |
| commit | b8533a53ac6fe2288ba453bca8a7537f104753b8 (patch) | |
| tree | d9490746d5f9ea2fedf796a2b225a9207fa89c79 /src | |
| parent | f78ed1078d86fc879b00c050fb1b10eb381cfe21 (diff) | |
| download | rabbitmq-server-git-b8533a53ac6fe2288ba453bca8a7537f104753b8.tar.gz | |
cosmetic
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_amqqueue_process.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index 1c324bbf62..abdbd24b33 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; |
