Commit 7dac83eb authored by lain's avatar lain
Browse files

Linting.

parent 7d790bb2
Pipeline #35305 passed with stages
in 95 minutes and 51 seconds
......@@ -421,13 +421,14 @@ def bookmarks(%{assigns: %{user: user}} = conn, params) do
end
# Deactivated for 2.3.0
# defp put_application(params, %{assigns: %{token: %Token{user: %User{} = user} = token}} = _conn) do
# if user.disclose_client do
# %{client_name: client_name, website: website} = Repo.preload(token, :app).app
# Map.put(params, :generator, %{type: "Application", name: client_name, url: website})
# else
# Map.put(params, :generator, nil)
# end
# defp put_application(params,
# %{assigns: %{token: %Token{user: %User{} = user} = token}} = _conn) do
# if user.disclose_client do
# %{client_name: client_name, website: website} = Repo.preload(token, :app).app
# Map.put(params, :generator, %{type: "Application", name: client_name, url: website})
# else
# Map.put(params, :generator, nil)
# end
# end
defp put_application(params, _), do: Map.put(params, :generator, nil)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment