[Modify] Polish it

This commit is contained in:
sta 2018-08-29 19:48:02 +09:00
parent 76ed2aede1
commit b530875b85

View File

@ -761,11 +761,8 @@ namespace WebSocketSharp.Net
public static string HtmlAttributeEncode (string s)
{
if (s == null)
return null;
if (s.Length == 0)
return String.Empty;
if (s == null || s.Length == 0)
return s;
var buff = new StringBuilder ();