move result into with guard
[akkoma] / 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,