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().
|
-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…
Reference in New Issue