[Modify] Polish it

This commit is contained in:
sta 2019-02-20 21:13:13 +09:00
parent 28684d8bdf
commit 48ce156442

View File

@ -103,7 +103,6 @@ namespace WebSocketSharp.Net
/// </summary> /// </summary>
public Cookie () public Cookie ()
{ {
_comment = String.Empty;
_domain = String.Empty; _domain = String.Empty;
_expires = DateTime.MinValue; _expires = DateTime.MinValue;
_name = String.Empty; _name = String.Empty;
@ -286,11 +285,11 @@ namespace WebSocketSharp.Net
/// </value> /// </value>
public string Comment { public string Comment {
get { get {
return _comment; return _comment ?? String.Empty;
} }
set { set {
_comment = value ?? String.Empty; _comment = value;
} }
} }