Simplification of boolean expression

Motivation:

Simplify code and reduction the logical operations.

Modifications:

Simplify boolean expression.

Result:

Code less and simpler.
This commit is contained in:
fenik17 2017-02-08 01:54:09 +05:00 committed by Scott Mitchell
parent 6353c229fd
commit ccd1d77714

View File

@ -467,8 +467,7 @@ public class LengthFieldBasedFrameDecoder extends ByteToMessageDecoder {
long tooLongFrameLength = this.tooLongFrameLength;
this.tooLongFrameLength = 0;
discardingTooLongFrame = false;
if (!failFast ||
failFast && firstDetectionOfTooLongFrame) {
if (!failFast || firstDetectionOfTooLongFrame) {
fail(tooLongFrameLength);
}
} else {