chore: remove the is_list guard
This commit is contained in:
parent
093cdab838
commit
856de78698
|
@ -2483,7 +2483,7 @@ to_wordsize(Str) ->
|
|||
Error -> Error
|
||||
end.
|
||||
|
||||
to_integer(Str) when is_list(Str) ->
|
||||
to_integer(Str) ->
|
||||
case string:to_integer(Str) of
|
||||
{Int, []} -> {ok, Int};
|
||||
{Int, <<>>} -> {ok, Int};
|
||||
|
|
Loading…
Reference in New Issue