summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2014-01-10 11:33:04 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2014-01-10 11:33:04 +0000
commit6a380541b983575c44b5e5c022855d94c92ebda8 (patch)
tree614e4291ce5d1a870caff1935f4524506b398bdf
parent44226025176899ca5d681893527fe6b8e2735995 (diff)
downloadrabbitmq-server-6a380541b983575c44b5e5c022855d94c92ebda8.tar.gz
simplify even further
-rw-r--r--src/gm.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gm.erl b/src/gm.erl
index 1703864a..cddb2a3b 100644
--- a/src/gm.erl
+++ b/src/gm.erl
@@ -898,10 +898,10 @@ internal_broadcast(Msg, From, State = #state { self = Self,
State1 = State #state { pub_count = PubCount1,
confirms = Confirms1,
broadcast_buffer = Buffer1 },
- handle_callback_result(case From of
- none -> {Result, State1};
- _ -> {Result, flush_broadcast_buffer(State1)}
- end).
+ handle_callback_result({Result, case From of
+ none -> State1;
+ _ -> flush_broadcast_buffer(State1)
+ end}).
flush_broadcast_buffer(State = #state { broadcast_buffer = [] }) ->
State;