[Modify] Polish it

This commit is contained in:
sta 2018-09-29 20:41:54 +09:00
parent e2cc195808
commit 343c0acf6a

View File

@ -843,10 +843,7 @@ namespace WebSocketSharp.Net
if (s == null)
throw new ArgumentNullException ("s");
if (s.Length == 0)
return s;
return htmlAttributeEncode (s);
return s.Length > 0 ? htmlAttributeEncode (s) : s;
}
public static void HtmlAttributeEncode (string s, TextWriter output)