Skip to content

Commit 619ff32

Browse files
ariel-anielimergify[bot]
authored andcommitted
[deps/rabbitmq_aws] Labelled boolean arguments in perform_request_has_creds/9 & perform_request_creds_expired/9
(cherry picked from commit be302c2)
1 parent b7f2cc2 commit 619ff32

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

deps/rabbitmq_aws/src/rabbitmq_aws.erl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,10 @@ perform_request(State, Service, Method, Headers, Path, Body, Options, Host) ->
386386
Headers, Path, Body, Options, Host).
387387

388388

389-
-spec perform_request_has_creds(true | false, State :: state(),
390-
Service :: string(), Method :: method(),
391-
Headers :: headers(), Path :: path(), Body :: body(),
392-
Options :: http_options(), Host :: string() | undefined)
389+
-spec perform_request_has_creds(HasCreds :: boolean(), State :: state(),
390+
Service :: string(), Method :: method(),
391+
Headers :: headers(), Path :: path(), Body :: body(),
392+
Options :: http_options(), Host :: string() | undefined)
393393
-> {Result :: result(), NewState :: state()}.
394394
%% @doc Invoked after checking to see if there are credentials. If there are,
395395
%% validate they have not or will not expire, performing the request if not,
@@ -402,10 +402,10 @@ perform_request_has_creds(false, State, _, _, _, _, _, _, _) ->
402402
perform_request_creds_error(State).
403403

404404

405-
-spec perform_request_creds_expired(true | false, State :: state(),
406-
Service :: string(), Method :: method(),
407-
Headers :: headers(), Path :: path(), Body :: body(),
408-
Options :: http_options(), Host :: string() | undefined)
405+
-spec perform_request_creds_expired(CredsExp :: boolean(), State :: state(),
406+
Service :: string(), Method :: method(),
407+
Headers :: headers(), Path :: path(), Body :: body(),
408+
Options :: http_options(), Host :: string() | undefined)
409409
-> {Result :: result(), NewState :: state()}.
410410
%% @doc Invoked after checking to see if the current credentials have expired.
411411
%% If they haven't, perform the request, otherwise try and refresh the

0 commit comments

Comments
 (0)