From 63f1b1d9d5ef532dc5ce87f88085d894fc334ab5 Mon Sep 17 00:00:00 2001 From: Amit Kapoor Date: Mon, 2 Apr 2012 08:11:18 -0700 Subject: [PATCH] Use lists:member/2 to check xref results --- src/rebar_xref.erl | 7 +++---- 1 file 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. %% ===================================================================