[Modify] Polish it

This commit is contained in:
sta 2019-01-01 16:26:06 +09:00
parent a793b5be21
commit 770eb70991

View File

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