@env is not used
authorMark Felder <feld@FreeBSD.org>
Wed, 7 Oct 2020 17:55:16 +0000 (12:55 -0500)
committerMark Felder <feld@FreeBSD.org>
Wed, 7 Oct 2020 17:55:16 +0000 (12:55 -0500)
lib/pleroma/application.ex

index e73d89350d35c1789e5720c591cbbe70bf6dc3fd..02dd3993970dd3737eede97293fc7ed04684473d 100644 (file)
@@ -99,7 +99,7 @@ defmodule Pleroma.Application do
         ] ++
         task_children(@env) ++
         dont_run_in_test(@env) ++
-        chat_child(@env, chat_enabled?()) ++
+        chat_child(chat_enabled?()) ++
         [
           Pleroma.Web.Endpoint,
           Pleroma.Gopher.Server
@@ -201,11 +201,11 @@ defmodule Pleroma.Application do
     ]
   end
 
-  defp chat_child(_env, true) do
+  defp chat_child(true) do
     [Pleroma.Web.ChatChannel.ChatChannelState]
   end
 
-  defp chat_child(_, _), do: []
+  defp chat_child(_), do: []
 
   defp task_children(:test) do
     [