diff options
author | Amit Kapoor <amit@koanect.com> | 2012-04-02 08:11:18 -0700 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-04-02 19:14:37 +0200 |
commit | 63f1b1d9d5ef532dc5ce87f88085d894fc334ab5 (patch) | |
tree | 070a8c56672fd909faa4117baab314a21adba5d7 /src | |
parent | 0191806f9282c6ce1da0f1a2c0672406de15ed24 (diff) |
Use lists:member/2 to check xref results
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_xref.erl | 7 |
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. %% =================================================================== |