From b530875b857699761c66ef8bad38d1a23a5741d6 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 29 Aug 2018 19:48:02 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpUtility.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 4ffaad73..9c0c999e 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -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 ();