Skip to content

Commit cf86b97

Browse files
committed
cosmetic
1 parent 5ca897a commit cf86b97

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/rabbit_channel.erl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,9 @@ handle_method(#'basic.publish'{exchange = ExchangeNameBin,
426426
Exchange,
427427
rabbit_basic:delivery(Mandatory, Immediate, TxnKey, Message)),
428428
case RoutingRes of
429-
routed ->
430-
ok;
431-
unroutable ->
432-
ok = basic_return(Message, WriterPid, no_route);
433-
not_delivered ->
434-
ok = basic_return(Message, WriterPid, no_consumers)
429+
routed -> ok;
430+
unroutable -> ok = basic_return(Message, WriterPid, no_route);
431+
not_delivered -> ok = basic_return(Message, WriterPid, no_consumers)
435432
end,
436433
{noreply, case TxnKey of
437434
none -> State;

src/rabbit_reader.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,8 @@ map_exception(Channel, Reason) ->
807807
ShouldClose = SuggestedClose or (Channel == 0),
808808
{ClassId, MethodId} = case FailedMethod of
809809
{_, _} -> FailedMethod;
810-
none -> {0, 0};
811-
_ -> rabbit_framing:method_id(FailedMethod)
810+
none -> {0, 0};
811+
_ -> rabbit_framing:method_id(FailedMethod)
812812
end,
813813
{CloseChannel, CloseMethod} =
814814
case ShouldClose of

0 commit comments

Comments
 (0)