From 6e7f91bf8fdc355afe48bccd1ccde3340c514eae Mon Sep 17 00:00:00 2001 From: squidboi Date: Thu, 7 Jun 2018 22:14:39 -0700 Subject: [PATCH] final format --- .../web/activity_pub/mrf/reject_non_public.ex | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex b/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex index e3fcc4447..fe257214e 100644 --- a/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex +++ b/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex @@ -17,14 +17,11 @@ defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublic do true -> "direct" end - {flag, object_out} = - case visibility do - "public" -> {:ok, object} - "unlisted" -> {:ok, object} - _ -> {:reject, nil} - end - - {flag, object_out} + case visibility do + "public" -> {:ok, object} + "unlisted" -> {:ok, object} + _ -> {:reject, nil} + end else {:ok, object} end -- 2.45.2