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