Skip to content

Commit

Permalink
Fix string type errors function
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Novikov committed Jun 19, 2024
1 parent 69ea692 commit 0c98195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types/string_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ defmodule Talos.Types.StringType do
value
) do
errors =
case String.valid?(value) do
case is_binary(value) && String.valid?(value) do
true ->
str_len = String.length(value)

Expand Down

0 comments on commit 0c98195

Please sign in to comment.