summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2015-11-28 00:37:48 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2015-11-28 00:38:40 +0100
commit0661066cb04b80707c10ca9fd82690f8e581629c (patch)
tree2df19ee0c3acff79960857bd413e09bf30c1596a /src
parentb870e061a3038039e1721723b17c8e8cd27b82b5 (diff)
downloadrebar-0661066cb04b80707c10ca9fd82690f8e581629c.tar.gz
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,