diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2011-09-14 19:53:04 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2011-09-14 19:53:04 +0100 |
commit | facffae7b771325bdf7094043047fc5226d1be88 (patch) | |
tree | 81117b6413e2a6d3b09bcc0a6aba94ab866d264d /src | |
parent | 769fcf608fdd822cfb296f26c55714e9de535b64 (diff) | |
download | rabbitmq-server-git-facffae7b771325bdf7094043047fc5226d1be88.tar.gz |
cosmetic
Diffstat (limited to 'src')
-rw-r--r-- | src/rabbit_error_logger_file_h.erl | 10 | ||||
-rw-r--r-- | src/rabbit_sasl_report_file_h.erl | 6 |
2 files changed, 6 insertions, 10 deletions
diff --git a/src/rabbit_error_logger_file_h.erl b/src/rabbit_error_logger_file_h.erl index 3db0ff2e77..8667d94cac 100644 --- a/src/rabbit_error_logger_file_h.erl +++ b/src/rabbit_error_logger_file_h.erl @@ -59,8 +59,8 @@ init(File) -> init_file(File, {error_logger, Buf}) -> case init_file(File, error_logger) of {ok, {Fd, File, PrevHandler}} -> - [handle_event(Event, {Fd, File, PrevHandler}) - || {_, Event} <- lists:reverse(Buf)], + [handle_event(Event, {Fd, File, PrevHandler}) || + {_, Event} <- lists:reverse(Buf)], {ok, {Fd, File, PrevHandler}}; Error -> Error @@ -68,10 +68,8 @@ init_file(File, {error_logger, Buf}) -> init_file(File, PrevHandler) -> process_flag(trap_exit, true), case file:open(File, [append]) of - {ok,Fd} -> - {ok, {Fd, File, PrevHandler}}; - Error -> - Error + {ok,Fd} -> {ok, {Fd, File, PrevHandler}}; + Error -> Error end. handle_event(Event, State) -> diff --git a/src/rabbit_sasl_report_file_h.erl b/src/rabbit_sasl_report_file_h.erl index d45ed3d33d..99e3b141e7 100644 --- a/src/rabbit_sasl_report_file_h.erl +++ b/src/rabbit_sasl_report_file_h.erl @@ -57,10 +57,8 @@ init(File) -> init_file({File, Type}) -> process_flag(trap_exit, true), case file:open(File, [append]) of - {ok,Fd} -> - {ok, {Fd, File, Type}}; - What -> - What + {ok,Fd} -> {ok, {Fd, File, Type}}; + Error -> Error end. handle_event(Event, State) -> |