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:
parent
6fd4315a0c
commit
b34291762a
@ -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].
|
||||
|
Loading…
Reference in New Issue
Block a user