Commit 006da383 authored by zengtianlai3's avatar zengtianlai3

冗余的null检查

parent 3969ca4c
......@@ -33,7 +33,6 @@ public class OperateClient {
channelInitializer = new OperateChannelInitializer(handler);
EventLoopGroup eventLoopGroup = new NioEventLoopGroup();
bootstrap = new Bootstrap();
if (bootstrap != null) {
try {
bootstrap
.channel(NioSocketChannel.class)
......@@ -44,7 +43,6 @@ public class OperateClient {
log.error(ex.getMessage());
}
}
}
public void startTcp(String host, int port) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment