summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFinn Behrens <me@kloenk.dev>2021-12-07 09:18:53 +0100
committerFinn Behrens <me@kloenk.dev>2021-12-07 09:18:53 +0100
commit8af53101fbeb0d4855ffa2b33069e833abf2e825 (patch)
tree6a1ca67c5ceec80b9d4a4f49ab776122a6ad0ec9
parent613f55b078e5daf6df6a5ead4865a051c85940f7 (diff)
move result into with guard
-rw-r--r--lib/pleroma/web/activity_pub/publisher.ex3
1 files changed, 1 insertions, 2 deletions
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,