Skip to content
Browse files

readability

  • Loading branch information...
1 parent 22efa5d commit 7eeef7609ab82f0f7a23b5bf6ea63a4526495dd3 @paulosuzart committed Oct 14, 2011
Showing with 6 additions and 7 deletions.
  1. +6 −7 src/main/scala/codemountain/finagle/Servers.scala
View
13 src/main/scala/codemountain/finagle/Servers.scala
@@ -92,13 +92,12 @@ object SuperAdvanced {
import Helpers._
val superAd = ~~ {
- case (Get, request) =>
- (Path(request.path)) match {
- case Root / "user" / Integer(id) =>
- val response = request.response
- response.setContentString("The user id is %d\n\n" format id)
- Future.value(response)
- }
+ case (Get, request) => Path(request.path) match {
+ case Root / "user" / Integer(id) =>
+ val response = request.response
+ response.setContentString("The user id is %d\n\n" format id)
+ Future.value(response)
+ }
}
def main(args: Array[String]) {

0 comments on commit 7eeef76

Please sign in to comment.
Something went wrong with that request. Please try again.