chore: remove the is_list guard

This commit is contained in:
zhongwencool 2023-06-20 08:39:05 +08:00
parent 093cdab838
commit 856de78698
1 changed files with 1 additions and 1 deletions

View File

@ -2483,7 +2483,7 @@ to_wordsize(Str) ->
Error -> Error Error -> Error
end. end.
to_integer(Str) when is_list(Str) -> to_integer(Str) ->
case string:to_integer(Str) of case string:to_integer(Str) of
{Int, []} -> {ok, Int}; {Int, []} -> {ok, Int};
{Int, <<>>} -> {ok, Int}; {Int, <<>>} -> {ok, Int};