瀏覽代碼

rebar_qc: use lists:flatmap/2

pull/3/head
Tuncer Ayaz 12 年之前
父節點
當前提交
e5569e6862
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/rebar_qc.erl

+ 2
- 1
src/rebar_qc.erl 查看文件

@ -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…
取消
儲存