diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-07-04 17:39:57 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-07-04 17:39:57 +0100 |
commit | 44a5aa0e9b97e1337a51eebb49aeaf4cd00e768a (patch) | |
tree | 300fc04a424591dc182522b000a985240512b7ac /check_xref | |
parent | e83681f08e6cd8e93024b1b342daa01102b276f7 (diff) | |
download | rabbitmq-server-44a5aa0e9b97e1337a51eebb49aeaf4cd00e768a.tar.gz |
Cosmetic: indulge bias against if statements.
Diffstat (limited to 'check_xref')
-rwxr-xr-x | check_xref | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -70,14 +70,13 @@ check(Cwd, PluginsDir, LibDir, Checks) -> ok = file:rename(UnpackDir, AppN), code:add_patha(filename:join(AppN, "ebin")), - if IsExternal =:= true -> - App = list_to_atom(hd(string:tokens(filename:basename(AppN), - "-"))), - report(info, "loading ~p~n", [App]), - application:load(App), - store_third_party(App); - true -> - ok + case IsExternal of + true -> App = list_to_atom(hd(string:tokens(filename:basename(AppN), + "-"))), + report(info, "loading ~p~n", [App]), + application:load(App), + store_third_party(App); + _ -> ok end end || Plugin <- Plugins, lists:suffix(".ez", Plugin)], @@ -220,8 +219,9 @@ report(Results) -> {Errors, Warnings} = partition(Results), report(info, "Completed: ~p errors, ~p warnings~n", [length(Errors), length(Warnings)]), - if length(Errors) > 0 -> halt(1); - true -> halt(0) + case length(Errors) > 0 of + true -> halt(1); + false -> halt(0) end. report_failures({analysis_error, {Mod, Reason}}) -> |