From: Finn Behrens Date: Tue, 7 Dec 2021 08:18:53 +0000 (+0100) Subject: move result into with guard X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=66b60f1ee261317998257c9b8e250e7749e427ef;p=akkoma move result into with guard --- diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex index 4f29a4411..849b359d0 100644 --- 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,