Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
70522989d9
commit
b5f0cef156
@ -255,9 +255,7 @@ defmodule Pleroma.Object do
|
||||
end
|
||||
end
|
||||
|
||||
defp poll_is_multiple?(%Object{data: %{"anyOf" => anyOf}}) do
|
||||
!Enum.empty?(anyOf)
|
||||
end
|
||||
defp poll_is_multiple?(%Object{data: %{"anyOf" => [_ | _]}}), do: true
|
||||
|
||||
defp poll_is_multiple?(_), do: false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user