[Modify] Polish it

This commit is contained in:
sta 2021-12-06 21:42:04 +09:00
parent d316d4fe0f
commit d3c92a8a02

View File

@ -313,6 +313,7 @@ namespace WebSocketSharp
int cntDigit;
string cntFmt;
if (cnt < 10000) {
cntDigit = 4;
cntFmt = "{0,4}";
@ -352,6 +353,7 @@ namespace WebSocketSharp
Func<Action<string, string, string, string>> linePrinter =
() => {
long lineCnt = 0;
return (arg1, arg2, arg3, arg4) => {
buff.AppendFormat (
lineFmt, ++lineCnt, arg1, arg2, arg3, arg4
@ -393,6 +395,7 @@ namespace WebSocketSharp
}
buff.AppendFormat (footerFmt, String.Empty);
return buff.ToString ();
}