Skip to content

Commit b7f2cc2

Browse files
ariel-anielimergify[bot]
authored andcommitted
[deps/rabbitmq_aws] Replaced boolean() instead of true | false
(cherry picked from commit 8c65469)
1 parent 0093981 commit b7f2cc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deps/rabbitmq_aws/src/rabbitmq_aws.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ get_content_type(Headers) ->
294294
end,
295295
parse_content_type(Value).
296296

297-
-spec has_credentials() -> true | false.
297+
-spec has_credentials() -> boolean().
298298
has_credentials() ->
299299
gen_server:call(rabbitmq_aws, has_credentials).
300300

301-
-spec has_credentials(state()) -> true | false.
301+
-spec has_credentials(state()) -> boolean().
302302
%% @doc check to see if there are credentials made available in the current state
303303
%% returning false if not or if they have expired.
304304
%% @end
@@ -307,7 +307,7 @@ has_credentials(#state{access_key = Key}) when Key /= undefined -> true;
307307
has_credentials(_) -> false.
308308

309309

310-
-spec expired_credentials(Expiration :: calendar:datetime()) -> true | false.
310+
-spec expired_credentials(Expiration :: calendar:datetime()) -> boolean().
311311
%% @doc Indicates if the date that is passed in has expired.
312312
%% end
313313
expired_credentials(undefined) -> false;

0 commit comments

Comments
 (0)