move result into with guard
authorFinn Behrens <me@kloenk.dev>
Tue, 7 Dec 2021 08:18:53 +0000 (09:18 +0100)
committerFinn Behrens <me@kloenk.dev>
Tue, 7 Dec 2021 08:18:53 +0000 (09:18 +0100)
lib/pleroma/web/activity_pub/publisher.ex

index 4f29a441136a2377eb3a7f1cd6ea07430c708e86..849b359d02d3aec7b4db25c15144cbaf3bbf01c1 100644 (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,