Remove dialyzer warning

This commit is contained in:
Paweł Chmielowski 2022-04-28 10:18:29 +02:00
parent 6fd4315a0c
commit b34291762a
1 changed files with 2 additions and 2 deletions

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].