Skip to content

Commit 78ee224

Browse files
committed
Small changes to draft
Removed warning by IntelliJ
1 parent 5918edb commit 78ee224

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/java_websocket/drafts/Draft_10.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,7 @@ public Framedata translateSingleFrame(ByteBuffer buffer) throws IncompleteExcept
307307
}
308308
}
309309

310-
if (payloadlength >= 0 && payloadlength <= 125) {
311-
} else {
310+
if (!(payloadlength >= 0 && payloadlength <= 125)) {
312311
if (optcode == Opcode.PING || optcode == Opcode.PONG || optcode == Opcode.CLOSING) {
313312
throw new InvalidFrameException("more than 125 octets");
314313
}

0 commit comments

Comments
 (0)