Skip to content

Commit

Permalink
updates spec return type for deliver_now/1
Browse files Browse the repository at this point in the history
  • Loading branch information
poops committed Jun 7, 2018
1 parent 835c511 commit 42a1742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bamboo/mailer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 42a1742

Please sign in to comment.