mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
unused variable, remove referrer redirect
This commit is contained in:
parent
767a2ba949
commit
702d096ecf
1 changed files with 3 additions and 3 deletions
|
@ -6,10 +6,10 @@ defmodule PhilomenaWeb.Filter.ClearRecentController do
|
|||
plug PhilomenaWeb.RequireUserPlug
|
||||
|
||||
def delete(conn, _params) do
|
||||
{:ok, user} = Users.clear_recent_filters(conn.assigns.current_user)
|
||||
{:ok, _user} = Users.clear_recent_filters(conn.assigns.current_user)
|
||||
|
||||
conn
|
||||
|> put_flash(:info, "Cleared recent filters")
|
||||
|> redirect(external: conn.assigns.referrer)
|
||||
|> put_flash(:info, "Cleared recent filters.")
|
||||
|> redirect(to: Routes.filter_path(conn, :index))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue