diff --git a/hbase-examples/src/main/java/org/apache/hadoop/hbase/thrift2/DemoClient.java b/hbase-examples/src/main/java/org/apache/hadoop/hbase/thrift2/DemoClient.java index 1ab2f8dcd377..09546ffbba2b 100644 --- a/hbase-examples/src/main/java/org/apache/hadoop/hbase/thrift2/DemoClient.java +++ b/hbase-examples/src/main/java/org/apache/hadoop/hbase/thrift2/DemoClient.java @@ -93,13 +93,8 @@ public Void run() throws Exception { public void run() throws Exception { int timeout = 10000; boolean framed = false; - TTransport transport = null; - try { - transport = new TSocket(new TConfiguration(), host, port, timeout); - } catch (TTransportException e) { - throw new IOException(e); - } + TTransport transport = new TSocket(new TConfiguration(), host, port, timeout); if (framed) { transport = new TFramedTransport(transport); } else if (secure) {