From dc27900260918e3e64847aa460d9a1110f8d9714 Mon Sep 17 00:00:00 2001 From: "ayodele.akingbule" Date: Fri, 20 Nov 2020 13:32:10 +0100 Subject: [PATCH] fix(emqx_auth_jwt_app): Dialyzer warnings --- apps/emqx_auth_jwt/src/emqx_auth_jwt_app.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/emqx_auth_jwt/src/emqx_auth_jwt_app.erl b/apps/emqx_auth_jwt/src/emqx_auth_jwt_app.erl index 736fb28b9..0926bf697 100644 --- a/apps/emqx_auth_jwt/src/emqx_auth_jwt_app.erl +++ b/apps/emqx_auth_jwt/src/emqx_auth_jwt_app.erl @@ -33,11 +33,10 @@ start(_Type, _Args) -> {ok, Pid} = start_auth_server(jwks_svr_options()), ok = emqx_auth_jwt:register_metrics(), - AuthEnv0 = auth_env(), AuthEnv1 = AuthEnv0#{pid => Pid}, - emqx:hook('client.authenticate', {emqx_auth_jwt, check, [AuthEnv1]}), + _ = emqx:hook('client.authenticate', {emqx_auth_jwt, check, [AuthEnv1]}), {ok, Sup, AuthEnv1}. stop(AuthEnv) ->