From a6269761682a3c70dc755d78411b966b9f402a14 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 8 Feb 2019 21:43:44 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/Cookie.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/websocket-sharp/Net/Cookie.cs b/websocket-sharp/Net/Cookie.cs index a730b4ed..5f8cb825 100644 --- a/websocket-sharp/Net/Cookie.cs +++ b/websocket-sharp/Net/Cookie.cs @@ -668,9 +668,10 @@ namespace WebSocketSharp.Net buff.AppendFormat ("; Domain={0}", _domain); if (!_port.IsNullOrEmpty ()) { - buff.Append ( - _port != "\"\"" ? String.Format ("; Port={0}", _port) : "; Port" - ); + if (_port != "\"\"") + buff.AppendFormat ("; Port={0}", _port); + else + buff.Append ("; Port"); } if (!_comment.IsNullOrEmpty ())