Commit 99f86055 authored by feld's avatar feld
Browse files

Merge branch 'cycles-uploads' into 'develop'

Recompilation speedup: use generic types in @spec in Upload.Filter

See merge request !3453
parents ac2ed19e bdaa1d45
Pipeline #36472 passed with stages
in 86 minutes and 19 seconds
...@@ -15,13 +15,13 @@ defmodule Pleroma.Upload.Filter do ...@@ -15,13 +15,13 @@ defmodule Pleroma.Upload.Filter do
require Logger require Logger
@callback filter(Pleroma.Upload.t()) :: @callback filter(upload :: struct()) ::
{:ok, :filtered} {:ok, :filtered}
| {:ok, :noop} | {:ok, :noop}
| {:ok, :filtered, Pleroma.Upload.t()} | {:ok, :filtered, upload :: struct()}
| {:error, any()} | {:error, any()}
@spec filter([module()], Pleroma.Upload.t()) :: {:ok, Pleroma.Upload.t()} | {:error, any()} @spec filter([module()], upload :: struct()) :: {:ok, upload :: struct()} | {:error, any()}
def filter([], upload) do def filter([], upload) do
{:ok, upload} {:ok, upload}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment