Browse Source

rebar_qc: use lists:flatmap/2

pull/3/head
Tuncer Ayaz 12 years ago
parent
commit
e5569e6862
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/rebar_qc.erl

+ 2
- 1
src/rebar_qc.erl View File

@ -119,7 +119,8 @@ run(Config, QC, QCOpts) ->
%% as well. %% as well.
{ok, _SrcErls} = rebar_erlc_compiler:test_compile(Config), {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), true = code:set_path(CodePath),
ok; ok;

Loading…
Cancel
Save