diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2014-01-10 11:33:04 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2014-01-10 11:33:04 +0000 |
commit | 6a380541b983575c44b5e5c022855d94c92ebda8 (patch) | |
tree | 614e4291ce5d1a870caff1935f4524506b398bdf | |
parent | 44226025176899ca5d681893527fe6b8e2735995 (diff) | |
download | rabbitmq-server-6a380541b983575c44b5e5c022855d94c92ebda8.tar.gz |
simplify even further
-rw-r--r-- | src/gm.erl | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |