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:
parent
6353c229fd
commit
ccd1d77714
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user