mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-14 04:52:17 +00:00
Dialyzer: fix typespec
This commit is contained in:
parent
b283b686c4
commit
9402789437
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ defmodule Pleroma.Web.OAuth.App do
|
|||
|> Repo.insert()
|
||||
end
|
||||
|
||||
@spec update(pos_integer(), map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}
|
||||
@spec update(pos_integer(), map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()} | nil
|
||||
def update(id, params) do
|
||||
with %__MODULE__{} = app <- Repo.get(__MODULE__, id) do
|
||||
app
|
||||
|
|
Loading…
Reference in a new issue