Skip to content

Commit 767e150

Browse files
michaelklishinmergify[bot]
authored andcommitted
Use snake_case for these two functions
(cherry picked from commit 87c961b)
1 parent 49e9314 commit 767e150

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deps/rabbitmq_auth_backend_http/src/rabbit_auth_backend_http.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ description() ->
3434

3535
user_login_authentication(Username, AuthProps) ->
3636

37-
case http_req(p(user_path), q([{username, Username}]++extractOtherCredentials(AuthProps))) of
37+
case http_req(p(user_path), q([{username, Username}]++extract_other_credentials(AuthProps))) of
3838
{error, _} = E -> E;
3939
"deny" -> {refused, "Denied by the backing HTTP service", []};
4040
"allow" ++ Rest -> Tags = [rabbit_data_coercion:to_atom(T) ||
@@ -57,7 +57,7 @@ user_login_authentication(Username, AuthProps) ->
5757
%% However, it may happen that the user was authenticated via rabbit_auth_backend_cache, in that case,
5858
%% the property `rabbit_auth_backend_cache` is a function which returns a proplist with all the credentials used
5959
%% on the first succcessful login.
60-
resolveUsingPersistedCredentials(AuthProps) ->
60+
resolve_using_persisted_credentials(AuthProps) ->
6161
case proplists:get_value(rabbit_auth_backend_http, AuthProps, none) of
6262
none -> case proplists:get_value(rabbit_auth_backend_cache, AuthProps, none) of
6363
none -> AuthProps;
@@ -74,10 +74,10 @@ is_internal_property(rabbit_auth_backend_http) -> true;
7474
is_internal_property(rabbit_auth_backend_cache) -> true;
7575
is_internal_property(_Other) -> false.
7676

77-
extractOtherCredentials(AuthProps) ->
77+
extract_other_credentials(AuthProps) ->
7878
PublicAuthProps = [{K,V} || {K,V} <-AuthProps, not is_internal_property(K)],
7979
case PublicAuthProps of
80-
[] -> resolveUsingPersistedCredentials(AuthProps);
80+
[] -> resolve_using_persisted_credentials(AuthProps);
8181
_ -> PublicAuthProps
8282
end.
8383

0 commit comments

Comments
 (0)