Replaced true | false by boolean()

This commit is contained in:
Ariel Otilibili 2023-12-22 17:18:44 +01:00
parent f39570cc73
commit e1d09fbba6
4 changed files with 5 additions and 6 deletions

View File

@ -22,9 +22,8 @@
-type amqp10_prim() :: -type amqp10_prim() ::
null | null |
true | boolean() |
false | {boolean, boolean()} |
{boolean, true | false} |
{ubyte, byte()} | {ubyte, byte()} |
{ushort, non_neg_integer()} | {ushort, non_neg_integer()} |
{uint, non_neg_integer()} | {uint, non_neg_integer()} |

View File

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

View File

@ -537,7 +537,7 @@ pagination_params(ReqData) ->
[PageNum, PageSize])}) [PageNum, PageSize])})
end. end.
-spec maybe_reverse([any()], string() | true | false) -> [any()]. -spec maybe_reverse([any()], string() | boolean()) -> [any()].
maybe_reverse([], _) -> maybe_reverse([], _) ->
[]; [];
maybe_reverse(RangeList, true) when is_list(RangeList) -> maybe_reverse(RangeList, true) when is_list(RangeList) ->

View File

@ -246,7 +246,7 @@ node_name_parse(Value) ->
%% result of the IPv4 check is processed. %% result of the IPv4 check is processed.
%% @end %% @end
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
-spec node_name_parse(IsIPv4 :: true | false, Value :: string()) -spec node_name_parse(IsIPv4 :: boolean(), Value :: string())
-> string(). -> string().
node_name_parse(true, Value) -> Value; node_name_parse(true, Value) -> Value;
node_name_parse(false, Value) -> node_name_parse(false, Value) ->