mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
Fix some typespecs
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
cd61a98f4d
commit
a4cc566ee7
2 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ defmodule Mobilizon.Instances.Instance do
|
|||
use Ecto.Schema
|
||||
|
||||
@type t :: %__MODULE__{
|
||||
domain: String.t(),
|
||||
event_count: non_neg_integer(),
|
||||
person_count: non_neg_integer(),
|
||||
group_count: non_neg_integer(),
|
||||
|
|
|
@ -5,7 +5,7 @@ defmodule Mobilizon.Web.Email.Mailer do
|
|||
use Swoosh.Mailer, otp_app: :mobilizon
|
||||
alias Mobilizon.Service.ErrorReporting.Sentry
|
||||
|
||||
@spec send_email(Swoosh.Email.t()) :: Swoosh.Email.t()
|
||||
@spec send_email(Swoosh.Email.t()) :: {:ok, term} | {:error, term}
|
||||
def send_email(email) do
|
||||
Mobilizon.Web.Email.Mailer.deliver(email)
|
||||
rescue
|
||||
|
|
Loading…
Reference in a new issue