diff options
| author | Tony Garnock-Jones <tonyg@kcbbs.gen.nz> | 2009-11-30 22:50:05 +0000 |
|---|---|---|
| committer | Tony Garnock-Jones <tonyg@kcbbs.gen.nz> | 2009-11-30 22:50:05 +0000 |
| commit | 3444f15551855685017371b47bdcf0acd3613844 (patch) | |
| tree | 7ee306d86e808fe9fcd5a2ed26b0e299a1571db2 /src/rabbit.erl | |
| parent | a74501435a007b980b4d61bae62c732f60b0f89d (diff) | |
| download | rabbitmq-server-git-3444f15551855685017371b47bdcf0acd3613844.tar.gz | |
Avoid compiler warning about unused term; weirdly, the replaced idiom works elsewhere
Diffstat (limited to 'src/rabbit.erl')
| -rw-r--r-- | src/rabbit.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index b85af6adfd..4d6bd0097c 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -389,5 +389,6 @@ discover_static_hooks(Hook) -> erlang:function_exported(M, Hook, 1)]. run_static_hooks(HookModules, Hook, Event) -> - _ = [{M, Hook, ok} = {M, Hook, M:Hook(Event)} || M <- HookModules], - ok. + ok = lists:foreach(fun (M) -> + {M, Hook, ok} = {M, Hook, M:Hook(Event)} + end, HookModules). |
