diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-04-11 23:21:27 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-04-11 23:21:27 +0200 |
commit | e0b32253af62a1bc0ce68ccd7b9a8bc8cf54e3d0 (patch) | |
tree | 08300178cf70a6aea7c6b39fbab308ba1088a944 /src/main/scala | |
parent | 74beb1b751f6abf1775d6a8ec3eea4d63f3fd41f (diff) | |
download | scala-async-e0b32253af62a1bc0ce68ccd7b9a8bc8cf54e3d0.tar.gz scala-async-e0b32253af62a1bc0ce68ccd7b9a8bc8cf54e3d0.tar.bz2 scala-async-e0b32253af62a1bc0ce68ccd7b9a8bc8cf54e3d0.zip |
Avoid needless Unit literal as the expression of a Block.
We've got a perfectly good expression at hand.
Diffstat (limited to 'src/main/scala')
-rw-r--r-- | src/main/scala/scala/async/ExprBuilder.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/scala/async/ExprBuilder.scala b/src/main/scala/scala/async/ExprBuilder.scala index adb6b3d..ca46a83 100644 --- a/src/main/scala/scala/async/ExprBuilder.scala +++ b/src/main/scala/scala/async/ExprBuilder.scala @@ -94,7 +94,7 @@ private[async] final case class ExprBuilder[C <: Context, FS <: FutureSystem](c: c.Expr[scala.util.Try[T]]( TypeApply(Select(Ident(name.tr), newTermName("asInstanceOf")), List(TypeTree(weakTypeOf[scala.util.Try[T]]))))).tree, - Block(List(tryGetTree, mkStateTree(nextState), mkResumeApply), c.literalUnit.tree) + Block(List(tryGetTree, mkStateTree(nextState)), mkResumeApply) ) Some(mkHandlerCase(state, List(ifIsFailureTree))) |