fix broken build(jslint) introduced with original patch
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1134093 13f79535-47bb-0310-9956-
ffa450edef68
if( ns_pieces.size() > 0){
for(size_t i = 0; i < ns_pieces.size(); ++i) {
pns += ((i == 0) ? "" : ".") + ns_pieces[i];
- f_types_ << "if (typeof " << pns << " === 'undefined') " << pns << " = {};" << endl;
+ f_types_ << "if (typeof " << pns << " === 'undefined') {" << endl;
+ f_types_ << " " << pns << " = {};" << endl;
+ f_types_ << "}" << endl;
}
}