THRIFT-5504 CA2254 Message template should be compile time constant
Client netstd
Patch: Jens Geyer
diff --git a/lib/netstd/Thrift/Protocol/ToString.cs b/lib/netstd/Thrift/Protocol/ToString.cs
index 14fa520..50dd6df 100644
--- a/lib/netstd/Thrift/Protocol/ToString.cs
+++ b/lib/netstd/Thrift/Protocol/ToString.cs
@@ -47,15 +47,15 @@
if (first_child)
first_child = false;
else
- sb.Append(",");
+ sb.Append(',');
sb.Append("{ ");
pair.Key.ToString(sb);
sb.Append(", ");
pair.Value.ToString(sb);
- sb.Append("}");
+ sb.Append('}');
}
- sb.Append("}");
+ sb.Append('}');
}
else if (self is IEnumerable)
{
@@ -65,7 +65,7 @@
elm.ToString(sb, first_child);
first_child = false;
}
- sb.Append("}");
+ sb.Append('}');
}
else if (self is TBase)
{