Apply suggestion to lib/pleroma/web/activity_pub/transmogrifier.ex

This commit is contained in:
lain 2020-04-29 19:47:16 +00:00
parent 89a6c34081
commit 589ce1e96b

View File

@ -650,9 +650,6 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
with {:ok, %User{}} <- ObjectValidator.fetch_actor(data), with {:ok, %User{}} <- ObjectValidator.fetch_actor(data),
{:ok, activity, _} <- Pipeline.common_pipeline(data, local: false) do {:ok, activity, _} <- Pipeline.common_pipeline(data, local: false) do
{:ok, activity} {:ok, activity}
else
e ->
e
end end
end end