Skip to content

Commit 82caba4

Browse files
Fix dialyze error
1 parent 3b53316 commit 82caba4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

deps/rabbitmq_management/src/rabbit_mgmt_oauth_bootstrap.erl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ set_oauth_settings(AuthSettings) ->
3838
["set_oauth_settings(", JsonAuthSettings, ");"].
3939

4040
set_token_auth(AuthSettings, Req0) ->
41-
TokenOrError = case proplists:get_value(oauth_enabled, AuthSettings, false) of
41+
ReqTokenTuple = case proplists:get_value(oauth_enabled, AuthSettings, false) of
4242
true ->
4343
case cowboy_req:parse_header(<<"authorization">>, Req0) of
4444
{bearer, Token} ->
@@ -74,8 +74,7 @@ set_token_auth(AuthSettings, Req0) ->
7474
undefined
7575
}
7676
end,
77-
case TokenOrError of
78-
{error, _} = Error -> Error;
77+
case ReqTokenTuple of
7978
{Req, undefined} -> {Req, []};
8079
{Req, Tk} ->
8180
case oauth2_client:is_jwt_token(Tk) of

0 commit comments

Comments
 (0)