Skip to content

Commit

Permalink
if is nil not add custom_args
Browse files Browse the repository at this point in the history
  • Loading branch information
clairton committed Jul 11, 2018
1 parent 25f5b01 commit 0818842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bamboo/adapters/send_grid_adapter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ defmodule Bamboo.SendGridAdapter do
defp put_template_substitutions(body, _), do: body

defp put_custom_args(body, %Email{private: %{custom_args: custom_args}})
when length(custom_args) <= 0,
when is_nil(custom_args) or length(custom_args) == 0,
do: body

defp put_custom_args(body, %Email{
Expand Down

0 comments on commit 0818842

Please sign in to comment.