From 63ab3e23aaf15344e5c0f02fd3f096c72b934e0e Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Wed, 29 Sep 2021 16:10:37 +0200 Subject: [PATCH] code tweak --- app/controllers/Notify.scala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/controllers/Notify.scala b/app/controllers/Notify.scala index 6b42d46884..3ce9e7a5d1 100644 --- a/app/controllers/Notify.scala +++ b/app/controllers/Notify.scala @@ -13,8 +13,7 @@ final class Notify(env: Env) extends LilaController(env) { } } - def clear = - Auth { implicit ctx => me => - XhrOrRedirectHome { (env.notifyM.api.remove(Notifies(me.id))) } - } + def clear = Auth { implicit ctx => me => + env.notifyM.api.remove(Notifies(me.id)) + } }