summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-01-26 19:26:11 -0500
committerMark Felder <feld@feld.me>2024-01-26 21:03:41 -0500
commite834343496f98685079a4ed070573c23069f7a20 (patch)
tree08becbf147b185e73235c9110710a8160da60e16
parent1b40ebfa2040da1bc80c5bbd50aff0f764d7c523 (diff)
downloadpleroma-e834343496f98685079a4ed070573c23069f7a20.tar.gz
pleroma-e834343496f98685079a4ed070573c23069f7a20.zip
Pleroma.Search.SearchBackend: dialyzer error
Incorrect spec. Both search backends return :ok so that is what should be the spec. lib/pleroma/search/database_search.ex:56:callback_type_mismatch Type mismatch for @callback remove_from_index/1 in Pleroma.Search.SearchBackend behaviour. Expected type: {:error, _} | {:ok, _} Actual type: :ok
-rw-r--r--lib/pleroma/search/search_backend.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/search/search_backend.ex b/lib/pleroma/search/search_backend.ex
index 46be84551..68bc48cec 100644
--- a/lib/pleroma/search/search_backend.ex
+++ b/lib/pleroma/search/search_backend.ex
@@ -20,5 +20,5 @@ defmodule Pleroma.Search.SearchBackend do
is what contains the actual content and there is no need for filtering when removing
from index.
"""
- @callback remove_from_index(object :: Pleroma.Object.t()) :: {:ok, any()} | {:error, any()}
+ @callback remove_from_index(object :: Pleroma.Object.t()) :: :ok | {:error, any()}
end