[Modify] Polish it

This commit is contained in:
sta 2018-09-29 20:45:20 +09:00
parent 343c0acf6a
commit 1c2472c9f3

View File

@ -854,7 +854,10 @@ namespace WebSocketSharp.Net
if (output == null)
throw new ArgumentNullException ("output");
output.Write (s.Length > 0 ? htmlAttributeEncode (s) : s);
if (s.Length == 0)
return;
output.Write (htmlAttributeEncode (s));
}
/// <summary>