lint code

This commit is contained in:
clowwindy
2015-01-08 21:57:51 +08:00
parent 6192e09970
commit a0a5cafe3d
10 changed files with 87 additions and 212 deletions
+3 -3
View File
@@ -1035,13 +1035,13 @@ namespace SimpleJson
protected static bool SerializeArray(IJsonSerializerStrategy jsonSerializerStrategy, IEnumerable anArray, StringBuilder builder)
{
builder.Append("[");
builder.Append("[\r\n ");
bool first = true;
foreach (object value in anArray)
{
if (!first)
builder.Append(",");
builder.Append(",\r\n ");
if (!SerializeValue(jsonSerializerStrategy, value, builder))
return false;
@@ -1049,7 +1049,7 @@ namespace SimpleJson
first = false;
}
builder.Append("]");
builder.Append("\r\n]");
return true;
}