From c6880e0f67d1cd4ac9e62539871e4734a9449807 Mon Sep 17 00:00:00 2001 From: Lakin Wecker Date: Tue, 31 May 2016 00:26:20 -0600 Subject: [PATCH] Some minor style improvements. --- app/controllers/Round.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/Round.scala b/app/controllers/Round.scala index b686d5b05a..de227dba7c 100644 --- a/app/controllers/Round.scala +++ b/app/controllers/Round.scala @@ -139,8 +139,10 @@ object Round extends LilaController with TheftPrevention { case Some(pov) => get("pov") match { case Some(requestedPov) => (pov.player.userId, pov.opponent.userId) match { - case (Some(x),Some(y)) if y == requestedPov => Redirect(routes.Round.watcher(gameId, (!pov.color).name)).fuccess - case (Some(x),Some(y)) if x == requestedPov => Redirect(routes.Round.watcher(gameId, pov.color.name)).fuccess + case (Some(_),Some(opponent)) if opponent == requestedPov => + Redirect(routes.Round.watcher(gameId, (!pov.color).name)).fuccess + case (Some(player),Some(_)) if player == requestedPov => + Redirect(routes.Round.watcher(gameId, pov.color.name)).fuccess case _ => notFound } case None => {