Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 40147951e059eab2b230a4192abd73c2101a4c56 1 parent 96f56fc
@bmatheny authored
View
5 finagle-memcached/src/main/scala/com/twitter/finagle/memcached/protocol/text/Show.scala
@@ -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))
}
Please sign in to comment.
Something went wrong with that request. Please try again.