mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
rebar_qc: use lists:flatmap/2
This commit is contained in:
parent
3f2ad54ebc
commit
e5569e6862
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue