Dialyzer: fix typespec

This commit is contained in:
Mark Felder 2024-07-01 11:47:27 -04:00
parent b283b686c4
commit 9402789437

View file

@ -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