fix(emqx_auth_mnesia_api): fix Dialyzer warnings

This commit is contained in:
ayodele.akingbule 2020-12-14 18:54:38 +01:00
parent 8ee98e3f20
commit 51c62dfe65
1 changed files with 2 additions and 5 deletions

View File

@ -128,8 +128,7 @@ add_clientid(_Bindings, Params) ->
Re = do_add_clientid(Params), Re = do_add_clientid(Params),
case Re of case Re of
ok -> return(ok); ok -> return(ok);
<<"ok">> -> return(ok); {error, Error} -> {error, format_msg(Error)}
_ -> return({error, format_msg(Re)})
end end
end. end.
@ -178,8 +177,7 @@ add_username(_Bindings, Params) ->
false -> false ->
case do_add_username(Params) of case do_add_username(Params) of
ok -> return(ok); ok -> return(ok);
<<"ok">> -> return(ok); {error, Error} -> {error, format_msg(Error)}
Error -> return({error, format_msg(Error)})
end end
end. end.
@ -310,4 +308,3 @@ urldecode(S) ->
urldecode(S) -> urldecode(S) ->
http_uri:decode(S). http_uri:decode(S).
-endif. -endif.