Merge branch 'fix/credo-issues' into 'develop'
[akkoma] / lib / pleroma / plugs / user_fetcher_plug.ex
index 9cbaaf40a983be5d4c76788ae25bd71d3bc5c64a..7ed4602bbd2a5c43e4a96aba0b975657f05a4958 100644 (file)
@@ -1,13 +1,18 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
 defmodule Pleroma.Plugs.UserFetcherPlug do
-  import Plug.Conn
-  alias Pleroma.Repo
   alias Pleroma.User
+  alias Pleroma.Repo
+
+  import Plug.Conn
 
   def init(options) do
     options
   end
 
-  def call(conn, options) do
+  def call(conn, _options) do
     with %{auth_credentials: %{username: username}} <- conn.assigns,
          {:ok, %User{} = user} <- user_fetcher(username) do
       conn