fix(authn_redis): make dialyzer happy
This commit is contained in:
parent
9e97760520
commit
62fd955a0e
|
@ -141,8 +141,8 @@ authenticate(
|
||||||
{ok, []} ->
|
{ok, []} ->
|
||||||
ignore;
|
ignore;
|
||||||
{ok, Values} ->
|
{ok, Values} ->
|
||||||
case lists:all(fun(E) -> E =:= undefined end, Values) of
|
case check_query_matched(Values) of
|
||||||
true ->
|
false ->
|
||||||
%% key not exists
|
%% key not exists
|
||||||
ignore;
|
ignore;
|
||||||
_ ->
|
_ ->
|
||||||
|
@ -228,3 +228,10 @@ merge(Fields, Values) ->
|
||||||
|| {K, V} <- lists:zip(Fields, Values), V =/= undefined
|
|| {K, V} <- lists:zip(Fields, Values), V =/= undefined
|
||||||
]
|
]
|
||||||
).
|
).
|
||||||
|
|
||||||
|
check_query_matched(undefined) ->
|
||||||
|
false;
|
||||||
|
check_query_matched(List) when is_list(List) ->
|
||||||
|
lists:any(fun(E) -> E =/= undefined end, List);
|
||||||
|
check_query_matched(_) ->
|
||||||
|
true.
|
||||||
|
|
Loading…
Reference in New Issue