From 1c2472c9f331f08d037c857f91330afb4ac8e0cb Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 29 Sep 2018 20:45:20 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpUtility.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 5b520a42..a54de11a 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -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)); } ///