mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 19:21:34 +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
|
||||
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.
|
||||
|
||||
%% ===================================================================
|
||||
|
|
Loading…
Reference in a new issue