From: Ivan Tashkinov Date: Wed, 18 Sep 2019 10:31:10 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/plugs/oauth_scopes_plug.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e4f3d7f69d5d3db787f8b4906cacc673e2f970f1;p=akkoma Apply suggestion to lib/pleroma/plugs/oauth_scopes_plug.ex --- diff --git a/lib/pleroma/plugs/oauth_scopes_plug.ex b/lib/pleroma/plugs/oauth_scopes_plug.ex index e0d61c4eb..a3278dbef 100644 --- a/lib/pleroma/plugs/oauth_scopes_plug.ex +++ b/lib/pleroma/plugs/oauth_scopes_plug.ex @@ -61,9 +61,10 @@ defmodule Pleroma.Plugs.OAuthScopesPlug do end defp maybe_perform_instance_privacy_check(%Plug.Conn{} = conn, options) do - case options[:skip_instance_privacy_check] do - true -> conn - _ -> EnsurePublicOrAuthenticatedPlug.call(conn, []) + if options[:skip_instance_privacy_check] do + conn + else + EnsurePublicOrAuthenticatedPlug.call(conn, []) end end end