Remove an unnecessary "else" from the generated Thrift code.
authorDavid Reiss <dreiss@apache.org>
Fri, 21 Mar 2008 21:50:41 +0000 (21:50 +0000)
committerDavid Reiss <dreiss@apache.org>
Fri, 21 Mar 2008 21:50:41 +0000 (21:50 +0000)
commit62f0d5428d00281ca412164c478c850cfa45305d
treee64d65d9996c9a3e779ff35a31b51d1923b00d6d
parent9cc63b53ef0ed88ee96cb5584504ff1b38d62288
Remove an unnecessary "else" from the generated Thrift code.

The "if" block here always results in a return (or an exception),
so there is no need for an "else".  We can just put the rest of the code
under the "if" block.  This actually makes a little more sense because
the "if" block here is an exceptional case.

Also deleted a stale comment.

Reviewed By: lhastings

Test Plan: diff'ed the old and new code.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665580 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_cpp_generator.cc