summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-03-23 18:51:38 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2012-03-23 18:51:38 +0000
commit2ad1cd82e4c38c102fa01aea631f809ea4b69e94 (patch)
tree05f2bf826908218fabb0ff9a862a71fef2db64cc
parentb64be9d1e0732111e15c301b5764074bf629d4aa (diff)
downloadrabbitmq-server-2ad1cd82e4c38c102fa01aea631f809ea4b69e94.tar.gz
cosmetic
-rw-r--r--src/rabbit_amqqueue_process.erl10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 41fc173b..613c11da 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -333,12 +333,10 @@ ensure_expiry_timer(State = #q{expires = undefined}) ->
State;
ensure_expiry_timer(State = #q{expires = Expires}) ->
case is_unused(State) of
- true ->
- NewState = stop_expiry_timer(State),
- TRef = erlang:send_after(Expires, self(), maybe_expire),
- NewState#q{expiry_timer_ref = TRef};
- false ->
- State
+ true -> NewState = stop_expiry_timer(State),
+ TRef = erlang:send_after(Expires, self(), maybe_expire),
+ NewState#q{expiry_timer_ref = TRef};
+ false -> State
end.
ensure_stats_timer(State) ->