Permalink
Browse files

No need for an empty check, result is the same.

  • Loading branch information...
1 parent 96f56fc commit 40147951e059eab2b230a4192abd73c2101a4c56 @bmatheny committed Dec 2, 2011
@@ -85,10 +85,7 @@ class CommandToEncoding extends OneToOneEncoder {
Tokens(Seq(DECR, key, amount.toString))
case Delete(key) =>
Tokens(Seq(DELETE, key))
- case Stats(args) => args.isEmpty match {
- case true => Tokens(Seq(STATS))
- case false => Tokens(Seq[ChannelBuffer](STATS) ++ args)
- }
+ case Stats(args) => Tokens(Seq[ChannelBuffer](STATS) ++ args)
case Quit() =>
Tokens(Seq(QUIT))
}

0 comments on commit 4014795

Please sign in to comment.