Skip to content

Commit 04c68cb

Browse files
ariel-anielimergify[bot]
authored andcommitted
Replaced true | false by boolean()
(cherry picked from commit e1d09fb)
1 parent f703b45 commit 04c68cb

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

deps/amqp10_common/src/amqp10_binary_generator.erl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222

2323
-type amqp10_prim() ::
2424
null |
25-
true |
26-
false |
27-
{boolean, true | false} |
25+
boolean() |
26+
{boolean, boolean()} |
2827
{ubyte, byte()} |
2928
{ushort, non_neg_integer()} |
3029
{uint, non_neg_integer()} |

deps/rabbitmq_aws/src/rabbitmq_aws_config.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ ini_file_data(Path) ->
290290
ini_file_data(Path, filelib:is_file(Path)).
291291

292292

293-
-spec ini_file_data(Path :: string(), FileExists :: true | false)
293+
-spec ini_file_data(Path :: string(), FileExists :: boolean())
294294
-> list() | {error, atom()}.
295295
%% @doc Return the parsed ini file for the specified path.
296296
%% @end

deps/rabbitmq_management/src/rabbit_mgmt_util.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ pagination_params(ReqData) ->
523523
[PageNum, PageSize])})
524524
end.
525525

526-
-spec maybe_reverse([any()], string() | true | false) -> [any()].
526+
-spec maybe_reverse([any()], string() | boolean()) -> [any()].
527527
maybe_reverse([], _) ->
528528
[];
529529
maybe_reverse(RangeList, true) when is_list(RangeList) ->

deps/rabbitmq_peer_discovery_common/src/rabbit_peer_discovery_util.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ node_name_parse(Value) ->
246246
%% result of the IPv4 check is processed.
247247
%% @end
248248
%%--------------------------------------------------------------------
249-
-spec node_name_parse(IsIPv4 :: true | false, Value :: string())
249+
-spec node_name_parse(IsIPv4 :: boolean(), Value :: string())
250250
-> string().
251251
node_name_parse(true, Value) -> Value;
252252
node_name_parse(false, Value) ->

0 commit comments

Comments
 (0)