[Modify] Polish it

This commit is contained in:
sta 2019-09-03 19:41:57 +09:00
parent b940336a89
commit c0fe538d0f

View File

@ -367,11 +367,17 @@ namespace WebSocketSharp
);
var output = new StringBuilder (64);
Func<Action<string, string, string, string>> linePrinter = () => {
Func<Action<string, string, string, string>> linePrinter =
() => {
long lineCnt = 0;
return (arg1, arg2, arg3, arg4) =>
output.AppendFormat (lineFmt, ++lineCnt, arg1, arg2, arg3, arg4);
return (arg1, arg2, arg3, arg4) => {
output.AppendFormat (
lineFmt, ++lineCnt, arg1, arg2, arg3, arg4
);
};
};
var printLine = linePrinter ();
output.AppendFormat (headerFmt, String.Empty);