summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuis Rascão <luis.rascao@gmail.com>2015-11-28 14:27:04 +0000
committerLuis Rascão <luis.rascao@gmail.com>2015-11-28 14:27:04 +0000
commitb19a83976319cdf3807d4231b8faf0d797cbcdcd (patch)
tree375639a1c3d1156b3159e037a4f17bfc66eeb7ab /src
parent543221543054b5f8c32c6cec01a4b68779ae478c (diff)
parent0661066cb04b80707c10ca9fd82690f8e581629c (diff)
downloadrebar-b19a83976319cdf3807d4231b8faf0d797cbcdcd.tar.gz
Merge pull request #570 from tuncer/xref-dialyzer-warning
xref: fix dialyzer warning introduced in 69802f63120
Diffstat (limited to 'src')
-rw-r--r--src/rebar_xref.erl6
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,