fix(dialyzer): fix redundant cases
This commit is contained in:
parent
261ca3d625
commit
fb6ab93f47
|
@ -170,9 +170,7 @@ health_check(PoolName) ->
|
||||||
{ok, Conn} ->
|
{ok, Conn} ->
|
||||||
%% we don't care if this returns something or not, we just to test the connection
|
%% we don't care if this returns something or not, we just to test the connection
|
||||||
try mongo_api:find_one(Conn, <<"foo">>, {}, #{}) of
|
try mongo_api:find_one(Conn, <<"foo">>, {}, #{}) of
|
||||||
undefined -> true;
|
_ -> true
|
||||||
Res when is_map(Res) -> true;
|
|
||||||
_ -> false
|
|
||||||
catch
|
catch
|
||||||
_Class:_Error -> false
|
_Class:_Error -> false
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue