fix(dialyzer): fix redundant cases

This commit is contained in:
zhouzb 2021-11-24 18:21:08 +08:00
parent 261ca3d625
commit fb6ab93f47
1 changed files with 1 additions and 3 deletions

View File

@ -170,9 +170,7 @@ health_check(PoolName) ->
{ok, Conn} ->
%% we don't care if this returns something or not, we just to test the connection
try mongo_api:find_one(Conn, <<"foo">>, {}, #{}) of
undefined -> true;
Res when is_map(Res) -> true;
_ -> false
_ -> true
catch
_Class:_Error -> false
end;