move result into with guard

This commit is contained in:
Finn Behrens 2021-12-07 09:18:53 +01:00 committed by FloatingGhost
parent 2ac3d341b0
commit 66b60f1ee2

View file

@ -63,8 +63,7 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
date: date
})
with {:ok, %{status: code}} when code in 200..299 <-
result =
with {:ok, %{status: code}} = result when code in 200..299 <-
HTTP.post(
inbox,
json,