mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Use lists:member/2 to check xref results
This commit is contained in:
parent
0191806f92
commit
63f1b1d9d5
1 changed files with 3 additions and 4 deletions
|
@ -88,12 +88,11 @@ xref(Config, _) ->
|
||||||
%% Stop xref
|
%% Stop xref
|
||||||
stopped = xref:stop(xref),
|
stopped = xref:stop(xref),
|
||||||
|
|
||||||
case lists:all(fun(NoWarn) -> NoWarn end,
|
case lists:member(false, [ExportsNoWarn, UndefNoWarn, QueryNoWarn]) of
|
||||||
[ExportsNoWarn, UndefNoWarn, QueryNoWarn]) of
|
|
||||||
true ->
|
true ->
|
||||||
ok;
|
?FAIL;
|
||||||
false ->
|
false ->
|
||||||
?FAIL
|
ok
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% ===================================================================
|
%% ===================================================================
|
||||||
|
|
Loading…
Reference in a new issue