Fix usage of is_bitstring instead of is_binary

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-04-08 16:41:49 +02:00
parent b79c2815fc
commit bd53bfc46b
10 changed files with 19 additions and 13 deletions

View File

@@ -264,7 +264,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Participant do
@spec valid_email?(String.t() | nil) :: boolean
defp valid_email?(email) when is_nil(email), do: false
defp valid_email?(email) when is_bitstring(email) do
defp valid_email?(email) when is_binary(email) do
email
|> String.trim()
|> Checker.valid?()