mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Remove dialyzer warning
This commit is contained in:
parent
6fd4315a0c
commit
b34291762a
1 changed files with 2 additions and 2 deletions
|
@ -455,8 +455,8 @@ best_match(Pattern, Opts) ->
|
||||||
-spec logical_processors() -> non_neg_integer().
|
-spec logical_processors() -> non_neg_integer().
|
||||||
logical_processors() ->
|
logical_processors() ->
|
||||||
case erlang:system_info(logical_processors) of
|
case erlang:system_info(logical_processors) of
|
||||||
unknown -> 1;
|
V when is_integer(V), V >= 2 -> V;
|
||||||
V -> V
|
_ -> 1
|
||||||
end.
|
end.
|
||||||
|
|
||||||
-spec pmap(fun((T1) -> T2), [T1]) -> [T2].
|
-spec pmap(fun((T1) -> T2), [T1]) -> [T2].
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue