diff options
-rw-r--r-- | src/rebar_xref.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_xref.erl b/src/rebar_xref.erl index fdce75e..ee3414d 100644 --- a/src/rebar_xref.erl +++ b/src/rebar_xref.erl @@ -60,9 +60,9 @@ xref(Config, _) -> true = code:add_path(rebar_utils:ebin_dir()), %% Add extra paths to code path to, for example, be used - %% when behaviour modules are defined - [code:add_path(Path) - || Path <- rebar_config:get(Config, xref_extra_paths, [])], + %% when behaviour modules are defined. + lists:foreach(fun(P) -> true = code:add_path(P) end, + rebar_config:get(Config, xref_extra_paths, [])), %% Get list of xref checks we want to run ConfXrefChecks = rebar_config:get(Config, xref_checks, |