Format code to align unaligned code. (#9062)

Motivation:
Format code to align unaligned code.

Modification:
Reformat the code

Result:

Cleaner code
This commit is contained in:
秦世成 2019-05-20 18:07:02 +08:00 committed by Norman Maurer
parent 9c6365ee95
commit 18f27db194

View File

@ -150,12 +150,12 @@ public class WebSocket08FrameDecoder extends ByteToMessageDecoder
@Override @Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception { protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
// Discard all data received if closing handshake was received before. // Discard all data received if closing handshake was received before.
if (receivedClosingHandshake) { if (receivedClosingHandshake) {
in.skipBytes(actualReadableBytes()); in.skipBytes(actualReadableBytes());
return; return;
} }
switch (state) { switch (state) {
case READING_FIRST: case READING_FIRST:
if (!in.isReadable()) { if (!in.isReadable()) {