Skip to content

Commit 01d887d

Browse files
Merge pull request #10228 from rabbitmq/mergify/bp/v3.12.x/pr-10225
Replaced true | false by boolean() (backport #10225)
2 parents f703b45 + 2a9eccc commit 01d887d

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
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/amqp_client/src/amqp_channel.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
waiting_set = gb_trees:empty(),
9292
only_acks_received = true,
9393

94-
%% true | false, only relevant in the direct
94+
%% boolean(), only relevant in the direct
9595
%% client case.
9696
%% when true, consumers will manually notify
9797
%% queue pids using rabbit_amqqueue_common:notify_sent/2

deps/rabbit/src/rabbit_amqqueue_process.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
mirroring_policy_version = 0,
9090
%% running | flow | idle
9191
status,
92-
%% true | false
92+
%% boolean()
9393
single_active_consumer_on
9494
}).
9595

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_cleanup.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ maybe_cleanup(State, UnreachableNodes) ->
262262
%% @doc Iterate over the list of partitioned nodes, either logging the
263263
%% node that would be removed or actually removing it.
264264
%% @spec maybe_remove_nodes(PartitionedNodes :: [node()],
265-
%% WarnOnly :: true | false) -> ok
265+
%% WarnOnly :: boolean()) -> ok
266266
%% @end
267267
%%--------------------------------------------------------------------
268268
-spec maybe_remove_nodes(PartitionedNodes :: [node()],
269-
WarnOnly :: true | false) -> ok.
269+
WarnOnly :: boolean()) -> ok.
270270
maybe_remove_nodes([], _) -> ok;
271271
maybe_remove_nodes([Node | Nodes], true) ->
272272
?LOG_WARNING(

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)