Merge pull request #1412 from dreis2211/short-circuit
Issue #1411 - Use short-circuit operator in websocket Frame
This commit is contained in:
commit
a29b908361
|
@ -65,7 +65,7 @@ public interface Frame
|
||||||
|
|
||||||
public boolean isData()
|
public boolean isData()
|
||||||
{
|
{
|
||||||
return (opcode == TEXT.getOpCode()) | (opcode == BINARY.getOpCode());
|
return (opcode == TEXT.getOpCode()) || (opcode == BINARY.getOpCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isContinuation()
|
public boolean isContinuation()
|
||||||
|
|
Loading…
Reference in New Issue