commit: 8af53101fbeb0d4855ffa2b33069e833abf2e825
parent 613f55b078e5daf6df6a5ead4865a051c85940f7
Author: Finn Behrens <me@kloenk.dev>
Date: Tue, 7 Dec 2021 09:18:53 +0100
move result into with guard
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex
@@ -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,