[Modify] Polish it

This commit is contained in:
sta 2020-01-31 19:39:57 +09:00
parent e30629d9aa
commit b5265bceb1

View File

@ -202,7 +202,8 @@ namespace WebSocketSharp.Net
private static byte[] getChunkSizeBytes (int size, bool final)
{
return Encoding.ASCII.GetBytes (String.Format ("{0:x}\r\n{1}", size, final ? "\r\n" : ""));
var chunkSize = String.Format ("{0:x}\r\n{1}", size, final ? "\r\n" : "");
return Encoding.ASCII.GetBytes (chunkSize);
}
private void writeChunked (byte[] buffer, int offset, int count)