mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-11 03:13:51 +00:00
del[net]: unnecessary if statement
This commit is contained in:
1 parent
2df0c28af6
commit
1591543cce
1 file changed
-5
@@ -159,11 +159,6 @@ public class PacketService implements IPacketService {
|
||||
|
||||
@Override
|
||||
public void write(ByteBuf buffer, Object packet, Object attachment) {
|
||||
|
||||
if (packet == null) {
|
||||
logger.error("packet is null and can not be sent.");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
// 预留写入包的长度,一个int字节大小
|
||||
buffer.ensureWritable(7);
|
||||
|
||||
Reference in new issue
Block a user