From 42a174225ab3b069ac5a334d0fd5cbdf98202688 Mon Sep 17 00:00:00 2001 From: brandon paolin Date: Thu, 7 Jun 2018 14:01:46 -0400 Subject: [PATCH] updates spec return type for deliver_now/1 --- lib/bamboo/mailer.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bamboo/mailer.ex b/lib/bamboo/mailer.ex index 703d22eb..87580917 100644 --- a/lib/bamboo/mailer.ex +++ b/lib/bamboo/mailer.ex @@ -63,7 +63,7 @@ defmodule Bamboo.Mailer do defmacro __using__(opts) do quote bind_quoted: [opts: opts] do - @spec deliver_now(Bamboo.Email.t) :: Bamboo.Email.t + @spec deliver_now(Bamboo.Email.t) :: {:ok, map()} | {:error, any()} def deliver_now(email) do config = build_config() Bamboo.Mailer.deliver_now(config.adapter, email, config)