[#1895] credo fix.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 8 Jul 2020 09:54:23 +0000 (12:54 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 8 Jul 2020 09:54:23 +0000 (12:54 +0300)
lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex

index a23f47e54b78503553a2bb8ddddc75c478cb9fb3..ab7b1d6aa5859025cd66630ff27eb89d3041ad9c 100644 (file)
@@ -88,7 +88,7 @@ defmodule Pleroma.Web.MastodonAPI.TimelineController do
     )
   end
 
-  defp restrict_unauthenticated?(_local_only = true) do
+  defp restrict_unauthenticated?(true = _local_only) do
     Pleroma.Config.get([:restrict_unauthenticated, :timelines, :local])
   end