Use lists:member/2 to check xref results

This commit is contained in:
Amit Kapoor 2012-04-02 08:11:18 -07:00 committed by Tuncer Ayaz
parent 0191806f92
commit 63f1b1d9d5

View file

@ -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.
%% ===================================================================