Skip to content

Commit

Permalink
Simplification of boolean expression
Browse files Browse the repository at this point in the history
Motivation:

Simplify code and reduction the logical operations.

Modifications:

Simplify boolean expression.

Result:

Code less and simpler.
  • Loading branch information
fenik17 authored and Scottmitch committed Feb 7, 2017
1 parent 6353c22 commit ccd1d77
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,7 @@ private void failIfNecessary(boolean firstDetectionOfTooLongFrame) {
long tooLongFrameLength = this.tooLongFrameLength;
this.tooLongFrameLength = 0;
discardingTooLongFrame = false;
if (!failFast ||
failFast && firstDetectionOfTooLongFrame) {
if (!failFast || firstDetectionOfTooLongFrame) {
fail(tooLongFrameLength);
}
} else {
Expand Down

0 comments on commit ccd1d77

Please sign in to comment.