[Modify] Polish it
This commit is contained in:
parent
b940336a89
commit
c0fe538d0f
@ -367,11 +367,17 @@ namespace WebSocketSharp
|
|||||||
);
|
);
|
||||||
|
|
||||||
var output = new StringBuilder (64);
|
var output = new StringBuilder (64);
|
||||||
Func<Action<string, string, string, string>> linePrinter = () => {
|
|
||||||
long lineCnt = 0;
|
Func<Action<string, string, string, string>> linePrinter =
|
||||||
return (arg1, arg2, arg3, arg4) =>
|
() => {
|
||||||
output.AppendFormat (lineFmt, ++lineCnt, arg1, arg2, arg3, arg4);
|
long lineCnt = 0;
|
||||||
};
|
return (arg1, arg2, arg3, arg4) => {
|
||||||
|
output.AppendFormat (
|
||||||
|
lineFmt, ++lineCnt, arg1, arg2, arg3, arg4
|
||||||
|
);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
var printLine = linePrinter ();
|
var printLine = linePrinter ();
|
||||||
|
|
||||||
output.AppendFormat (headerFmt, String.Empty);
|
output.AppendFormat (headerFmt, String.Empty);
|
||||||
|
Loading…
Reference in New Issue
Block a user