summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-08-08 23:28:00 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-08-08 23:28:00 +0200
commite5569e6862e24d978361f078eaf6e50e7dc86bee (patch)
treea9e1428d118c0087e910fa4725a18a52b91bc099
parent3f2ad54ebc6eddef80192608adcb6167ad5c8838 (diff)
rebar_qc: use lists:flatmap/2
-rw-r--r--src/rebar_qc.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_qc.erl b/src/rebar_qc.erl
index 479049f..051400f 100644
--- a/src/rebar_qc.erl
+++ b/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;