Dialyzer: fix invalid @spec
This commit is contained in:
parent
6b6a2adb07
commit
79c418bcb7
|
@ -96,7 +96,7 @@ defp put_valid_until(changeset, attrs) do
|
||||||
|> validate_required([:valid_until])
|
|> validate_required([:valid_until])
|
||||||
end
|
end
|
||||||
|
|
||||||
@spec create(App.t(), User.t(), map()) :: {:ok, Token} | {:error, Ecto.Changeset.t()}
|
@spec create(App.t(), User.t(), map()) :: {:ok, Token.t()} | {:error, Ecto.Changeset.t()}
|
||||||
def create(%App{} = app, %User{} = user, attrs \\ %{}) do
|
def create(%App{} = app, %User{} = user, attrs \\ %{}) do
|
||||||
with {:ok, token} <- do_create(app, user, attrs) do
|
with {:ok, token} <- do_create(app, user, attrs) do
|
||||||
if Pleroma.Config.get([:oauth2, :clean_expired_tokens]) do
|
if Pleroma.Config.get([:oauth2, :clean_expired_tokens]) do
|
||||||
|
|
Loading…
Reference in New Issue