25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Remove dialyzer warning

This commit is contained in:
Paweł Chmielowski 2022-04-28 10:18:29 +02:00
parent 6fd4315a0c
commit b34291762a

View File

@ -455,8 +455,8 @@ best_match(Pattern, Opts) ->
-spec logical_processors() -> non_neg_integer().
logical_processors() ->
case erlang:system_info(logical_processors) of
unknown -> 1;
V -> V
V when is_integer(V), V >= 2 -> V;
_ -> 1
end.
-spec pmap(fun((T1) -> T2), [T1]) -> [T2].