From 4c7d9cbc1e3e2f357eff9c4c093ba19ab4dc38da Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Fri, 30 Dec 2011 15:04:59 +0100 Subject: [PATCH] Formatting Future.scala --- akka-actor/src/main/scala/akka/dispatch/Future.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-actor/src/main/scala/akka/dispatch/Future.scala b/akka-actor/src/main/scala/akka/dispatch/Future.scala index 9563ddf84b..39260c667b 100644 --- a/akka-actor/src/main/scala/akka/dispatch/Future.scala +++ b/akka-actor/src/main/scala/akka/dispatch/Future.scala @@ -458,7 +458,7 @@ sealed trait Future[+T] extends japi.Future[T] with Await.Awaitable[T] { val future = Promise[A]() onComplete { case l: Left[_, _] ⇒ future complete l.asInstanceOf[Either[Throwable, A]] - case Right(res) ⇒ future complete (try { Right(f(res)) } catch { case e: Exception ⇒ Left(e) } ) + case Right(res) ⇒ future complete (try { Right(f(res)) } catch { case e: Exception ⇒ Left(e) }) } future }