diff --git a/app/controllers/User.scala b/app/controllers/User.scala index e2c06fe682..ec62e260d6 100644 --- a/app/controllers/User.scala +++ b/app/controllers/User.scala @@ -32,10 +32,12 @@ object User extends LilaController { } def studyTv(username: String) = Open { implicit ctx => - OptionFuResult (UserRepo named username) { user => - lila.relation.Env.current.onlineStudying.get(user.id) match { - case None => fuccess(Redirect(routes.Study.byOwnerDefault(user.id))) - case Some(studyId) => fuccess(Redirect(routes.Study.show(studyId))) + OptionResult(UserRepo named username) { user => + Redirect { + lila.relation.Env.current.onlineStudying.get(user.id) match { + case None => routes.Study.byOwnerDefault(user.id) + case Some(studyId) => routes.Study.show(studyId) + } } } }