From 702d096ecf559c796915091fad4b5cc311760f9a Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 9 Feb 2021 17:24:21 -0500 Subject: [PATCH] unused variable, remove referrer redirect --- lib/philomena_web/controllers/filter/clear_recent.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/philomena_web/controllers/filter/clear_recent.ex b/lib/philomena_web/controllers/filter/clear_recent.ex index 12453fcf..f3aed68d 100644 --- a/lib/philomena_web/controllers/filter/clear_recent.ex +++ b/lib/philomena_web/controllers/filter/clear_recent.ex @@ -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