Skip to content

Commit

Permalink
fix: remove nil match here now
Browse files Browse the repository at this point in the history
  • Loading branch information
chasers authored and Ziinc committed Dec 12, 2023
1 parent d81df95 commit 270ea25
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/logflare/account_email.ex
Original file line number Diff line number Diff line change
Expand Up @@ -201,22 +201,6 @@ defmodule Logflare.AccountEmail do
|> text_body(part_one <> part_two <> unsuscribe_part)
end

def schema_updated(
email,
%Source{token: token},
_new_schema,
_old_schema,
_opts
)
when is_nil(email) do
Logger.error(
"Email schema notification not sent. Email is nil for source user source token: #{inspect(token)}",
source_id: token
)

{:error, :nil_email}
end

defp notification_email(email, rate, source_name, source_link, unsubscribe_link) do
new()
|> to(email)
Expand Down

0 comments on commit 270ea25

Please sign in to comment.