minor indent fixes

This commit is contained in:
Jens Geyer 2022-01-31 18:04:35 +01:00
parent 9a16c755b1
commit af453f33c4

View File

@ -1564,7 +1564,6 @@ void t_netstd_generator::generate_netstd_union_definition(ostream& out, t_struct
indent_up();
out << indent() << "return true;" << endl;
indent_down();
indent_down();
scope_down(out);
scope_down(out);
out << endl;
@ -2831,9 +2830,6 @@ void t_netstd_generator::generate_serialize_struct(ostream& out, t_struct* tstru
void t_netstd_generator::generate_serialize_container(ostream& out, t_type* ttype, string prefix)
{
out << indent() << "{" << endl;
indent_up();
if (ttype->is_map())
{
out << indent() << "await oprot.WriteMapBeginAsync(new TMap(" << type_to_enum(static_cast<t_map*>(ttype)->get_key_type())
@ -2901,9 +2897,6 @@ void t_netstd_generator::generate_serialize_container(ostream& out, t_type* ttyp
{
out << indent() << "await oprot.WriteListEndAsync(" << CANCELLATION_TOKEN_NAME << ");" << endl;
}
indent_down();
out << indent() << "}" << endl;
}
void t_netstd_generator::generate_serialize_map_element(ostream& out, t_map* tmap, string iter, string map)
@ -3266,8 +3259,7 @@ string t_netstd_generator::base_type_name(t_base_type* tbase)
case t_base_type::TYPE_VOID:
return "void";
case t_base_type::TYPE_STRING:
if (tbase->is_binary())
{
if (tbase->is_binary()) {
return "byte[]";
} else {
return "string";
@ -3300,8 +3292,7 @@ string t_netstd_generator::get_deep_copy_method_call(t_type* ttype, bool& needs_
switch (tbase)
{
case t_base_type::TYPE_STRING:
if (ttype->is_binary())
{
if (ttype->is_binary()) {
return ".ToArray()";
} else {
return ""; // simple assignment will do, strings are immutable in C#