rebar_qc: use lists:flatmap/2

This commit is contained in:
Tuncer Ayaz 2012-08-08 23:28:00 +02:00
parent 3f2ad54ebc
commit e5569e6862

View file

@ -119,7 +119,8 @@ run(Config, QC, QCOpts) ->
%% as well.
{ok, _SrcErls} = rebar_erlc_compiler:test_compile(Config),
case lists:flatten([qc_module(QC, QCOpts, M) || M <- find_prop_mods()]) of
TestModule = fun(M) -> qc_module(QC, QCOpts, M) end,
case lists:flatmap(TestModule, find_prop_mods()) of
[] ->
true = code:set_path(CodePath),
ok;