playframework/Play20 — comment on commit c007d97a979c3f32d7aa1d548c55df99a9e681d4
File: framework/play/src/main/scala/play/core/server/websocket/WebSocket10FrameDecoder.scala line 97
By viktorklang:

You make it a branched. (also I spotted some semicolons in there as well)

Example:

def decode (...) = {
if(closing) {
...
null
} else {
status match {
case SOME_STATUS =>
case SOME_OTHER_STATUS =>
case _ => null
}
}
}