diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2013-04-17 12:33:40 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2013-04-17 12:33:40 +0100 |
| commit | f3001bd1420e9474e87f45908390888cbf4c7845 (patch) | |
| tree | 4d1d9f71f99edea9afcc07140600fba139c87dfd | |
| parent | ddc0b20ee78d91884327a6683dc8f81f809ce18d (diff) | |
| download | rabbitmq-server-git-f3001bd1420e9474e87f45908390888cbf4c7845.tar.gz | |
Cosmetic
| -rw-r--r-- | src/rabbit_exchange_decorator.erl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/rabbit_exchange_decorator.erl b/src/rabbit_exchange_decorator.erl index 79ea212f8c..3abaa48c5b 100644 --- a/src/rabbit_exchange_decorator.erl +++ b/src/rabbit_exchange_decorator.erl @@ -93,13 +93,12 @@ filter(Modules) -> [M || M <- Modules, code:which(M) =/= non_existing]. set(X) -> - X#exchange{ - decorators = - lists:foldl(fun (D, {Route, NoRoute}) -> - Callbacks = D:active_for(X), - {cons_if_eq(all, Callbacks, D, Route), - cons_if_eq(noroute, Callbacks, D, NoRoute)} - end, {[], []}, list())}. + Decs = lists:foldl(fun (D, {Route, NoRoute}) -> + ActiveFor = D:active_for(X), + {cons_if_eq(all, ActiveFor, D, Route), + cons_if_eq(noroute, ActiveFor, D, NoRoute)} + end, {[], []}, list()), + X#exchange{decorators = Decs}. list() -> [M || {_, M} <- rabbit_registry:lookup_all(exchange_decorator)]. |
