Apply suggestion to lib/pleroma/web/activity_pub/object_validators/create_validator.ex

This commit is contained in:
lain 2020-03-24 18:20:58 +00:00
parent 6c1232b486
commit 74560e888e

View file

@ -25,7 +25,6 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.CreateNoteValidator do
end
def cast_data(data) do
%__MODULE__{}
|> cast(data, __schema__(:fields))
cast(%__MODULE__{}, data, __schema__(:fields))
end
end