/[Apache-SVN]
ViewVC logotype

Revision 665580


Jump to revision: Previous Next
Author: dreiss
Date: Fri Mar 21 21:50:41 2008 UTC (16 years, 7 months ago)
Changed paths: 1
Log Message:
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.


Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26