Dialyzer: fix typespec
This commit is contained in:
parent
b283b686c4
commit
9402789437
@ -62,7 +62,7 @@ defmodule Pleroma.Web.OAuth.App do
|
|||||||
|> Repo.insert()
|
|> Repo.insert()
|
||||||
end
|
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
|
def update(id, params) do
|
||||||
with %__MODULE__{} = app <- Repo.get(__MODULE__, id) do
|
with %__MODULE__{} = app <- Repo.get(__MODULE__, id) do
|
||||||
app
|
app
|
||||||
|
Loading…
Reference in New Issue
Block a user