From f5af9d6c215c3582e5b5d15d3fd61b1ebc7f192c Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Mon, 2 Jul 2012 19:20:45 +0200 Subject: [PATCH] Fix rebar_eunit whitespace issues --- src/rebar_eunit.erl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index 42c6fdd..b966985 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -87,13 +87,12 @@ eunit(Config, _AppFile) -> %% for source files. Also copy files from src_dirs. ErlOpts = rebar_utils:erl_opts(Config), + SrcDirs = rebar_utils:src_dirs(proplists:append_values(src_dirs, ErlOpts)), SrcErls = lists:foldl( - fun(Dir, Acc) -> - lists:append(Acc, rebar_utils:find_files(Dir, ".*\\.erl\$")) - end, - [], - rebar_utils:src_dirs(proplists:append_values(src_dirs, ErlOpts)) - ), + fun(Dir, Acc) -> + Files = rebar_utils:find_files(Dir, ".*\\.erl\$"), + lists:append(Acc, Files) + end, [], SrcDirs), ?DEBUG("SrcErls: ~s\n", [SrcErls]), %% If it is not the first time rebar eunit is executed, there will be source