summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rebar_xref.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rebar_xref.erl b/src/rebar_xref.erl
index cfdfb8c..94103eb 100644
--- a/src/rebar_xref.erl
+++ b/src/rebar_xref.erl
@@ -88,12 +88,11 @@ xref(Config, _) ->
%% Stop xref
stopped = xref:stop(xref),
- case lists:all(fun(NoWarn) -> NoWarn end,
- [ExportsNoWarn, UndefNoWarn, QueryNoWarn]) of
+ case lists:member(false, [ExportsNoWarn, UndefNoWarn, QueryNoWarn]) of
true ->
- ok;
+ ?FAIL;
false ->
- ?FAIL
+ ok
end.
%% ===================================================================