THRIFT-5704 Superfluous block scope in generated write() code
Client: hx
Patch: Jens Geyer
diff --git a/compiler/cpp/src/thrift/generate/t_haxe_generator.cc b/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
index 9397ff1..ee65591 100644
--- a/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
@@ -2521,7 +2521,6 @@
  * @param prefix String prefix for fields
  */
 void t_haxe_generator::generate_serialize_container(ostream& out, t_type* ttype, string prefix) {
-  scope_up(out);
 
   if (ttype->is_map()) {
     string iter = tmp("_key");
@@ -2572,7 +2571,6 @@
     indent(out) << "oprot.writeListEnd();" << endl;
   }
 
-  scope_down(out);
 }
 
 /**